Start a new topic
Solved

load the AR experience from my URL in IOS sdk

Hi..
How can i load the AR experience from my URL in ( IOS App )??
i but my URL like this. right??

NSURL *architectWorldURL = [[NSBundle mainBundleURLForResource:@"index" withExtension:@"html" subdirectory:@"https://s3.amazonaws.com/ar/index.html"];

    self.loadingArchitectWorldNavigation = [self.architectView loadArchitectWorldFromURL:architectWorldURL withRequiredFeatures:WTFeature_2DTracking];


Pls. I'm tried from try.


Hi data,

  

NSURL *architectWorldURL = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html" subdirectory:@"https://s3.amazonaws.com/data.ar.tr/ar/index.html"];

 The snippet you posted is not exactly what you want. You use this snippet if you want to load an Architect World from your application bundle. NSBundle is a class that provides access to the application bundle, not a remote server.


What you need is the following:

 

NSURL *architectWorldURL = [NSURL URLWithString:@"https://s3.amazonaws.com/data.ar.tr/ar/index.html"];

 This creates a NSURL object that points to a remove server.


Best regards,

Andreas

Ok.. Mr. Andreas  
Thank you very much


I want this
NSURL *architectWorldURL = [NSURL URLWithString:@"https://s3.amazonaws.com/data.ar.tr/ar/index.html"];
It's working..

Regards..

Hi data,

That's great news! I hope you have fun using the Wikitude SDK!


Best regards,

Andreas

I'm using the IOS JAVASCRIPT API SDK

In the documentation it says i can load AR experience from a remote server.  

How might I do that,

I export  JS Experience from studio and putting on my server 

https://s3.amazonaws.com/data.ar.tr/ar/index.html

in the app i tried to put code like the following:

 

NSURL *architectWorldURL = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html" subdirectory:@"https://s3.amazonaws.com/data.ar.tr/ar/index.html"];

    self.loadingArchitectWorldNavigation = [self.architectView loadArchitectWorldFromURL:architectWorldURL withRequiredFeatures:WTFeature_2DTracking];


But not working 

 


And it seems hard to find right code for me

Login or Signup to post a comment