Start a new topic

urlWasInvoked not fired

urlWasInvoked not fired


Hi,

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

Regards.

 

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

Andi

 

 

 

hi,

 

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" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<!-- 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>

<script>

function dummyFunction()

{

return function()

    {

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

    }

}

 

</script>

</head>

 

<body>

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

 

<table width="100%"> 

<tr> 

<td width="0%"> 

</td> 

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

</td> 

<td width="0%"> 

</td> 

</tr> 

</table> 

 

<script>

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

</script>

 

</body>

</html>

 

 

Do I make something wrong ?
Login or Signup to post a comment