cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

"intent:" URI is parsed incorrectly

Open t4kemyh4nd opened this issue 4 years ago • 2 comments

https://github.com/apache/cordova-plugin-inappbrowser/blob/3b6757fc4407aa5cd9d5cbda3ff2f8174ecdae1a/src/android/InAppBrowser.java#L1203

In the shouldOverrideUrlLoading, the code seems to be also capable of parsing intent URIs. However, in case of intent URI, for example intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end, intent.setData will not work at all when it is passed to startActivity. To be able to parse intent URIs, intent.parseUri should be used instead.

t4kemyh4nd avatar Jun 03 '21 07:06 t4kemyh4nd

Exact same issue highlighted here: https://stackoverflow.com/questions/33151246/how-to-handle-intent-on-a-webview-url

t4kemyh4nd avatar Jun 03 '21 07:06 t4kemyh4nd

Can we expect a fix for this issue soon? It still persists and opening the tabs with _system instead of _blank is not really an option for all use cases.

kev494 avatar Nov 16 '23 10:11 kev494