WKWebView
, we’ll use the WKScriptMessageHandler
interface to send messages to your app.You’ll need to register the listeners you want to support with your content controller, and then handle
them appropriately. The example below listens to the ready
event to detect when the Loyalty Page has finished loading.