Start a new topic

Closing Wikitude iOS Objective C

Hi all,


Trying to close off the ARview. I am using Objective C with the Javascript wikitude. No matter what I try I cannot get this to work. Is there a way of making a call back function in my objective c code to close the view or even making what I currently have work? It displays the button fine but does nothing after.


index.html

<div id="backbtn"

<a href='javascript: World.closeScreen();'>

<img src="assets/ios-arrow-back.svg"  style="max-width: 50px; max-height: 50px;" />

</a>

</div>


java.js

var World = {

  closeScreen: function closeScreenFn() {

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

      WikitudePlugin.close();

  },

Login or Signup to post a comment