You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sharing content using the Share plugin, the target app's activity is opened within the context of the source app, leading to very confusing UI behavior:
In the task overview ("list of open apps"), the target app and the source app are not separate. The target app is not shown as its own entry, instead its activity is shown as if it was part of the source app
If the target app was already open when sharing, it now seems to appear twice in the task overview, due to the issue above.
To return to the source app after sharing, the user must use the back button/gesture of the device to step through the history of the target app before then returning to the source app
Expected Behavior
When sharing, the target app should be started as a new task.
Code Reproduction
Share.share({title: "Share test",text: "I am sharing this text"});
Additional Context
To fix this, the sharing Intent should be created with the Intent.FLAG_ACTIVITY_NEW_TASK) flag.
The text was updated successfully, but these errors were encountered:
Bug Report
Plugin(s)
Share
Capacitor Version
Platform(s)
Android
Current Behavior
When sharing content using the Share plugin, the target app's activity is opened within the context of the source app, leading to very confusing UI behavior:
Expected Behavior
When sharing, the target app should be started as a new task.
Code Reproduction
Additional Context
To fix this, the sharing Intent should be created with the
Intent.FLAG_ACTIVITY_NEW_TASK)
flag.The text was updated successfully, but these errors were encountered: