Custom-URL-scheme icon indicating copy to clipboard operation
Custom-URL-scheme copied to clipboard

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

Open seme1 opened this issue 8 years ago • 4 comments

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.

seme1 avatar Sep 27 '16 08:09 seme1

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

fanfavorite avatar May 18 '17 15:05 fanfavorite

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.

seme1 avatar May 22 '17 09:05 seme1

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 avatar Jan 11 '18 13:01 jlchereau

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

ejlocop avatar Jul 27 '18 09:07 ejlocop