receive_sharing_intent icon indicating copy to clipboard operation
receive_sharing_intent copied to clipboard

Fix Android App Restart not Triggering Initial Data

Open kulture-rob-snider opened this issue 2 years ago • 0 comments

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.

kulture-rob-snider avatar May 10 '22 16:05 kulture-rob-snider