Start a new topic

app.wikitudePlugin.callJavaScript

app.wikitudePlugin.callJavaScript
1 Comment


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