EddyVerbruggen / Custom-URL-scheme

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

opening a customURL starts a new instance of the app on Android #204

Open seme1 opened 7 years ago

seme1 commented 7 years ago

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.

fanfavorite commented 7 years ago

See this issue https://github.com/EddyVerbruggen/Custom-URL-scheme/issues/192 for fixing this.

seme1 commented 7 years ago

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.

jlchereau commented 6 years ago

The following works with:

<widget ...>
    <config-file parent="/manifest/application" platform="android">
        <activity android:launchMode="singleTask" android:allowTaskReparenting="true" />
    </config-file>
</widget>
ejlocop commented 6 years ago

@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>