Start a new topic

Pass username and passwort to an ArchitectView

Hello,


since I wrote my first Wikitude-Application for Android 6, I got another Problem:

I set up my URL that it requires username and password, which should be entered in the app. Not everybody should have access to the images and objects that are available on the server. I am using the newest Wkitude-SDK

Authenticator.setDefault (new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication ("user", "password".toCharArray());
}
});
this.architectView.load(urlFullPath);

The way above works for normal URL-Requests in Android, but in my Wikitude-View I get an Error Authorization required.


Hello Marco,

Unfortunately right now this is not a feature that we plan to implement. Regarding your second question, you can load some assets locally from your device and load other files from a sever, You only need to specify the correct path for each asset.

Thanks
Eva

 

Hello,

is this a feature, that will be supported in the future?
Then, is there a possibility to store the page itself on the server and save my images and objects on my device? That would be enough to be sure that nobody can access the images.

 

Hello Marco,

I do understand why you would like to put the files in a server that is protected with a username and password but, unfortunately, this is not supported with our SDK. The files need to be on a server that anyone can publicly access.

Thanks
Eva

 

Login or Signup to post a comment