Start a new topic

urlWasInvoked not fired

urlWasInvoked not fired



The function urlWasInvoked (on iOS) is not fired. This is a part of my ARWorld (with IR):


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">



<!-- Important: Let the viewport cover the whole screen -->

         <meta name="viewport" content="target-densitydpi=device-dpi, width = 540, user-scalable = 0" />

         <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

         <title>SkanTag Augmented Reality World</title>

         <!-- Include the ARchitect library -->

         <script src="architect://architect.js"></script>

         <!-- Include the ARchitect Desktop Engine for testing on a desktop browser-->

         <script type="text/javascript" src="../ade.js"></script>


function dummyFunction()


return function()


        document.location = "architectsdk://dummy";  








<div class="info" id="messageElement">Chargement...</div>


<table width="100%"> 


<td width="0%"> 


<td id="dummyCell" width="100%"> 


<td width="0%"> 






document.getElementById("dummyCell").onclick = dummyFunction();







Do I make something wrong ?

Hi Olivier,

did you set the delegate of your WTArchitectView in ObjC?

There should be somewhere a code like this:


// assuming self (mainly your UIViewController subclass) is conform to the WTArchitectViewDelegate protocol

self.architectView.delegate = self;


// after that you have to implement the following method in ObjC (in your UIViewController subclass if you assigned self as the delegate of the WTArchitectView)

- (void)urlWasInvoked:(NSString*)url


    NSLog(@"url was invoked in ARchitectWorld: %@", url);




Best regards






Thank you Andreas. Of course "self.architectView.delegate = self; " do the job...


Login or Signup to post a comment