Cap-go / capacitor-inappbrowser

Capacitor plugin in app browser with urlChangeEvent
MIT License
58 stars 38 forks source link

Question urlChangeEvent #19

Closed nseb closed 1 year ago

nseb commented 1 year ago

Hello , we use inappbrowser cordova for intercept loadstart ref.on('loadstart').subscribe(myCallback);

urlchangeEvent works same ?

You use capacitor properties android."overrideUserAgent" and ios."overrideUserAgent" for override agent version ?

riderx commented 1 year ago

urlchangeEvent is made to detect when the url change, like user click on link and that change the URL, for what do you use loadstart event ?

UTSOURCE commented 1 year ago

It can be used for interception, such as modifying the address during access

nseb commented 1 year ago

For me , I detect redirect on universal link on my app (example during oauth) , to close get url , close the inappbrowser and push th url directly in app.

riderx commented 1 year ago

So yes you can use the plugin for that, that the exact usecase i built it