breautek commented on issue #1518:
URL: 
https://github.com/apache/cordova-android/issues/1518#issuecomment-1315398481

   Ok, the article also states several remediations to the `singleTask` 
problem, one of which is using `singleInstance` instead.
   
   The problems noted with `singleTask` (which I think is the intended 
behaviour of that mode and thus isn't treated as a security vulnerability) is 
that the the task can be shared with several different activities. If you're 
aiming to guarantee only a single instance of your activity however, 
`singleTask` is not the solution as it conditionally allows multiple instances.
   
   `singleInstance` is the only launch mode that guarentees a single instance 
of your activity, but it also enforces that there are no other tasks (the 
activity itself must be the only task) which might be problematic if you rely 
on Intents.
   
   These are quite advanced topics, so I suggest reading the 
[Android](https://developer.android.com/guide/topics/manifest/activity-element#lmode)
 for your different launch mode options. You can confgure cordova to use them 
using `<preference name="AndroidLaunchMode" value="<mode>" />` in your 
`config.xml`. Each of the modes have their pros & cons. 
   
   I'm closing this issue because there is no clear bug with Cordova and we 
expose options to change the launch mode.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to