Start a new topic

How to communicate Javascript with IOS in Swift

There is only example in OC,I do not know how to handle javascript "architectsdk://wtcError" in swift.I am using wikitudeSDK_IOS_7-1-0.

Can anyone help me?

1 Comment

Hi shihang,

Please refer to our example application and the implementation of the `WTArchitectViewDelegate` protocol.

We recently added a improved version of the `document.location = architectsdk://` approach. The new JavaScript function is called `AR.platform.sendJSONObject`. The iOS counterpart is documented here. The ObjC translation to Swift follows the current Swift standard.

Best regards,


Login or Signup to post a comment