Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
57 stars 37 forks source link

addListener urlChangeEvent listener is not working #111

Closed arunchinna04 closed 1 month ago

arunchinna04 commented 3 months ago

I'm encountering an issue where i need to listen to URL changes occurring after the webview is loaded, but the addListener urlChangeEvent doesn't seem to be executing. Despite implementing the listener, it doesn't respond to URL changes. Could you please provide guidance or suggest alternative approaches to effectively capture these URL changes ?

await InAppBrowser.open({ url: 'https://capgo.app' })

//Below code is working even the url gets changed InAppBrowser.addListener("urlChangeEvent", (e: any) => { console.log('event', e.url); })

arunchinna04 commented 2 months ago

Is it possible to add addListener to InAppBrowser.open

riderx commented 1 month ago

No, open use the native webview and so this cannot be implemented