console.log('Loading AR web view failed: ' + error);
}, world.requiredFeatures);
});
}
}
})
ps. sorry for my poor english.
A
Andreas Fötschl
said
about 8 years ago
Hi there!
The snippet looks fine. Let me just list some bulletpoints I'd check in your project set-up
* Are there any interceptors in place that control urls/page loads (e.g. ui-router or similar) * Ensure to properly call document.location (e.g. document.location = 'architectsdk://action=foo';) * Debug your Android WebView, maybe a JS error occurred in your code. * Check sample application and plugin documentation
Kind regards, Andreas
K
Krailit Pongrujaporn
said
about 8 years ago
i fixed this issue by adding '$q.defer().resolve(url)' inside setOnUrlInvokeCallback.
TY
A
Alexis Castañeda
said
almost 8 years ago
Can you show us your sample with angular js? , plz
A
Andreas Fötschl
said
almost 8 years ago
Using the Wiktiude JS API togehter with Angular works out of the box. Include the following in your index.html's head:
I highly recommend to girst run through some Angular tutorials (e.g. CodeSchool or udemy), using Wikitude's features works in any environment.
Note that you need to always ensure your backgroud is transparent, in case of using e.g. Angular Materia you need to have this CSS in place to make it all work:
*
{
-webkit-highlight: none;
-webkit-touch-callout : none;
-webkit-user-select: none;
}
::-webkit-scrollbar {
display: none;
}
html, body {
background-color: transparent;
background-image:none;
background:rgba(0, 0, 0, 0);
}
y
yail peralta
said
about 7 years ago
Hi I have developed a wikitude plugin for ngCordova that i hope is in process to be added, here is the plugin, for the time been you have to add the module to the dependencies in your main module.
Krailit Pongrujaporn