Notalib / nativescript-webview-ext

Nativescript plugin with extended WebView functionality
Apache License 2.0
76 stars 37 forks source link

Listen to events emitted on navigated page #84

Closed bsansone closed 4 years ago

bsansone commented 4 years ago

I am using the webview to load an SSO login page. Once the user logs in they are redirected to a site I have control over. On this site I want to emit the event from the webview to the Nativescript app to let the app know the login was successful. It seems (and correct me if I'm wrong) the bridge is attached to the window of the first page that's loaded and not subsequent loaded pages. How can I have access to the bridge to emit the event from a new page?

bsansone commented 4 years ago

Issue was unrelated to my problem