Telefonica / webview-bridge

Novum JavaScript Bridge
MIT License
26 stars 7 forks source link

Use webview-bridge in iOS app #16

Closed jprojashernandez closed 5 years ago

jprojashernandez commented 5 years ago

Hi there,

I want to use webview bridge in my angular page and open it from my iOS app. But when I call isWebViewBridgeAvailable method in my page, it always returns false.

What am I doing wrong?

Thanks in advance.

pladaria commented 5 years ago

Hi,

Thank you for your interest. To use this bridge you need to implement the native part and create a message handler.

See https://developer.apple.com/documentation/webkit/wkusercontentcontroller/1537172-addscriptmessagehandler?language=objc