EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

Not working on Android 10 #315

Open widonwaker opened 4 years ago

widonwaker commented 4 years ago

handleOpenURL never gets invoked on Android 10. Any solution?

bendspoons commented 4 years ago

Try using

window.handleOpenURL = function handleOpenURL(url) {}

instead of only

handleOpenURL = function handleOpenURL(url) {}

With this it has worked every time (Huawei with Android 10)

thana-arnam commented 4 years ago

@widonwaker I have the same problem. Can you fix it? How to?

widonwaker commented 4 years ago

Seems like it's related to 2 factors authentication (Google, Facebook) with Android 10

AhmedSamir74 commented 4 years ago

i have same problem any updates?

widonwaker commented 4 years ago

No, I did not manage to make it working yet.

Update: seems to not work even in Android 9, on some devices. It's not related to Android version but something else.

widonwaker commented 4 years ago

UPDATE: for eveyone using this plugin for social login...check if names contain single quotes...they break the code.

allnash commented 4 years ago

@widonwaker Try doing the following to make this work on Android X.

Add these to config.xml

    <plugin name="cordova-plugin-androidx" spec="^1.0.2" />
    <plugin name="cordova-plugin-enable-multidex" spec="^0.2.0" />
    <plugin name="cordova-support-android-plugin" spec="^1.0.2" />
    <plugin name="cordova-plugin-androidx-adapter" spec="~1.1.0" />

These plugins convert the files imports.