mshaikh7 edited a comment on issue #480:
URL:
https://github.com/apache/cordova-plugin-inappbrowser/issues/480#issuecomment-646082089
I am facing the same issue, is there any way we can set the plugin launch
mode to SingleInstance, that way it always opens up in new task instead of
merging it on top of the existing activity in the same task?
Currently I had modified the source code in
`openExternalExcludeCurrentApp()` function with this inoder to open it always
in a NEW TASK:
```
if (hasCurrentPackage == false || targetIntents.size() == 0) {
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // added this
line to explicitly open in new task
this.cordova.getActivity().startActivity(intent);
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]