Skip to main content

Please contact the Smartzer team for technical details regarding embedding via SDK or any other custom implementations.

iOS

For iOS you should read the following tutorial

https://medium.com/john-lewis-software-engineering/ios-wkwebview-communication-using-javascript-and-swift-ee077e0127eb

The handler will be called from Smartzer’s side as:

window.webkit.messageHandlers.smrtzrApp;

So when you add the controller to your webview, you should do as below:

configuration.userContentController.add(self, name: smrtzrApp)