WebIntent & instances

Hi,

I’ve a problem with my app, using WebIntent https://github.com/Initsogar/cordova-webintent.

The plug-in is working fine, but each time I use it to share content to my app, it created a new instance.
I try to change my manifest launch mode from “singleTop” to “singleInstance” but it’s set back to singleTop when I run cordova to build the app.

Is there a way to avoid this:

I’m afraid it causes some performance issues.

Thanks,

In config.xml you can add:

<preference name="AndroidLaunchMode" value="singleTask"/>

which sets the app’s launch mode.

1 Like