You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/18 19:32:55 UTC

[GitHub] [cordova-plugin-inappbrowser] mshaikh7 edited a comment on issue #480: Open other app with deeplink isn's in new window & can't back cur app

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org