Wikitude
play_for_work
Forum
FAQ
Documentation
Download
wikitude.com
How can we help you today?
Enter your search term here...
Search
Start a new topic
Discussions
Cordova, Titanium, Unity, Xamarin
Cordova Questions or Problems
app.wikitudePlugin.callJavaScript
F
Frederick Chung
started a topic
about 9 years ago
app.wikitudePlugin.callJavaScript
1 Comment
F
Frederick Chung
said
about 9 years ago
There is a problem.
Why "app.wikitudePlugin.callJavaScript" will call twice in the World.
My code in Phonegap.
$.fn.urlInvoke = function(url) {
url = decodeURIComponent(url);
if (url.indexOf('initapp') > -1) {
alert(url);
app.wikitudePlugin.callJavaScript( "deviceinfo('"+device.uuid+"','"+device.platform+"','"+firstrun+"','"+$('#language').text()+"');");
}
}
In the world, call "document.location = "architectsdk://initapp";" this once only. Moreover, the "alert(url)" runs once, but I get twice calling of the function "deviceinfo" in the World.
Login
or
Signup
to post a comment
More topics in
Cordova Questions or Problems
Show POI only on Radar, not on camera
Capture Screen
Phonegap + SenchaTouch or other frameworks
PhoneGap App Issues
iOS App Compilation Error
JSon data WikitudeSDK + PhoneGap
onExit() , Avoid to close the AR on "BackButton" - Wikitude - PhoneGap
HTMLDrawable in Phonegap Plugin
Video not playing (wikitude sdk 1.1.1 + phonegap)
Bug when using PhoneGap and opening AR view multiple times
See all 577 topics
© 2021 Wikitude, a Qualcomm company
Frederick Chung