argonjs / argon

An open-standards augmented reality platform for the web
http://argonjs.io/
Apache License 2.0
403 stars 72 forks source link

Vuforia not available in argon4(android version) #89

Open denisdautllari opened 7 years ago

denisdautllari commented 7 years ago

I've been testing a simple vuforia sample (i have used the code from https://docs.argonjs.io/tutorial/part4/ ) on argon4 android . I cannot initialize vuforia because the promise object returned by app.vuforia.isAvailable() remains in "pending" state . There are no errors or warnings .

app.vuforia.isAvailable().then( //if promise is fulfilled function (available) { // vuforia not available on this platform // in argon4 android this is never executed if (!available) { console.warn("vuforia not available on this platform."); return; } else{ console.log("vuforia is available"); } }, //if promise is rejected function(reason) { // rejection // in argon4 android this is never executed console.log(reason) } ); When i try the same app in argon4 IOS it works as it should . I have used Samsung galaxy edge S6 and Samsung galaxy S5 for my tests.

blairmacintyre commented 7 years ago

Can you compare the code to the vuforia samples in the samples repository? I'm not sure if the folks doing the tutorials have updated them to the most recent argon.js (sorry if that's the case)

blairmacintyre commented 7 years ago

Most importantly, if the tutorials haven't been updated since the Android release, the version of argon.js there simple may not work on Android.

denisdautllari commented 7 years ago

Indeed the code in the test directory is different to the tutorials.

blairmacintyre commented 7 years ago

Sigh. Ok, I opened an issue on the tutorials repo, this needs to be fixed!