Custom-URL-scheme
Custom-URL-scheme copied to clipboard
opening a customURL starts a new instance of the app on Android
I tried adding the following setting to the config.xml file :
And it worked exactly as expected. However, this line caused several other plugins to stop working such as the Camera and MultiImagePicker plugins. After checking the other plugins, I found that they do not support the singleInstance launch mode on Android.
Any help to make this wonderful plugin work as expected is very much appreciated. The expected behavior when clicking on a customURL is for the user to be directed to an open instance of the app (if there is one in the background). Otherwise, a new instance should be opened.
See this issue https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/192 for fixing this.
Thank you. This does NOT fix my issue as I explained in my original post.
The following line causes other Android plugins such as the Camera and MultiImagePicker to stop functioning. The other plugins work by launching separate instances of the app.
So, there is still NO solution for this issue yet.
The following works with:
- cordova-plugin-customurlscheme,
- cordova-plugin-local-notifications,
- cordova-plugin-safariviewcontroller,
- cordova-plugin-x-socialsharing,
- phonegap-plugin-barcodescanner (which uses the camera), among other plugins, both on Android and Amazon Fire OS:
<widget ...>
<config-file parent="/manifest/application" platform="android">
<activity android:launchMode="singleTask" android:allowTaskReparenting="true" />
</config-file>
</widget>
@jlchereau config.xml malformed for android when i added this code.
<config-file parent="/manifest/application" platform="android">
<activity android:launchMode="singleTask" android:allowTaskReparenting="true" />
</config-file>