NativeScript messaging to/from a WebView running F7 - (does not work)

The canonical bidirectional communication tool between a WebView and its NativeScript application container is by way of the WebViewInterface lib. It provides an easy to use API outlined at the link below:

NativeScript WebViewInterface

The code I have has worked with a simple webpage with the standard script src=".

The window object is required to hook into the API from inside the WebView. Messages sent from the WebView/f7 do not arrive in the app container, nor do messages originated in the NativeScript app container arrive to the WebVIew…


I aim to publish a basic working demo which might attract adoption from the NativeScript community.

F7 is just a usual webapp, it doesn’t prevent anything. I guess it is better to ask on NativeScript forums

1 Like