receive_sharing_intent
receive_sharing_intent copied to clipboard
Fix Android App Restart not Triggering Initial Data
I have noticed that when Android kills the app while in the background, if a user shares to your app, the onNewIntent
and onAttachedToActivity
logic both get triggered. This causes the handleIntent
to not set the initialText
and initialMedia
and thus when the app starts, the user's "initial" logic isn't triggered.
This instead sets an initialOverride
to ensure that the onNewIntent
doesn't override the initial data in this situation.