Start a new topic

Sometimes, Javascript cannot call Native iOS fucntion

Sometimes, Javascript cannot call Native iOS fucntion

this.pageTen = new AR.Trackable2DObject(this.tracker, "au_back6", {

drawables: {



onEnterFieldOfVision: function(targetName) {

if(document.getElementById('validateField').value === 'f'){

document.location = 'architectsdk://validateQR?target=' + targetName;






I've already binded InvokedUrl function on the backend and I use document.location = 'architectsdk:// in Javascript at the "onEnterFieldOfVision" event. Why it sometime works fine, but sometime the InvokedUrl not fired. Help me how to fix this problem.

When changing the document location too quickly, the underlying web view might get confused and does not forward the change to our SDK. The vision trigger might get called a lot, so either use a timeout before changing the location or check the time between two consecutive calls to onEnterFieldOfVision.

Best regards

Login or Signup to post a comment