We use Wikitude studio to create experiences and use them within an iOS app with JS SKD.
It is possible to be notified of the recognized image names ?
If I understand correctly, you can get the name of your target by using
Thank you for the feedback.
To be more precise, what I am looking for is something similar to this :
Being notified by the WTArchitectViewDelegate in my native code (iOS, Swift) with a function
func architectView(_ architectView: WTArchitectView, didRecognizeImage targetProperties : [AnyHashable : Any]).
Thank you for your help
You can communicate from JS to ObjC with the following mechanism.
In you Architect World, call `AR.platform.sendJSONObject()` (You can pass any data that you want) and implement the WTArchitectViewDelegate method `architectView:receivedJSONObject:` to get this custom data. Please refer to our example app for additional details (Capture Screen, Native Detail Screen, Save/Load Instant Target are using this mechanism).
That's perfect thank you very much.
I was able to update the onTargetRecognized function to call my delegate and it works like a charm.
It would be even better if it was by default in the template.js from the .zip created by Wikitude Studio.
Thank you again,