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?
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?