Tazaf / ionicitude

AngularJS module for using the Wikitude cordova plugin in an Ionic project.
http://tazaf.github.io/ionicitude/
MIT License
24 stars 10 forks source link

Launch World from URL? #9

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi @Tazaf

I presume Ionicitude doesn't support the Wikitude-Cordova loadARchitectWorld method?

Is there a reason for this? I tried to add the method in myself (errors occurred). Wondering if you could help out? Any feedback would be good.

Thanks

Great work by the way! 😄

ghost commented 8 years ago

Managed to do some hacking and got it working 😃

Tazaf commented 8 years ago

Hi !

Indeed, Ionicitude doesn't support launching a world through its URL. There's no specific reason why : I just didn't implement it, yet ^^

Glad you worked out something though. Do you mind sharing it here ?

ghost commented 8 years ago

All I did was replace the return in the getWorldUrl method with just the URL and not the edited value:

Before

function getWorldUrl(world_ref) {
     return 'www/' + settings.worldsRootFolder + '/' + world_ref + '/index.html';
}

After

function getWorldUrl(world_ref) {
     return world_ref;
}

Not ideal, but it works for what I need it to do. Thanks for the plugin!