Hello, I hope you are all doing well.
I have a little question;
I am using navigation component, single activity multiple fragment. I have a tiny problem with deeplink.
• I’ve set
<nav-graph/>
in manifest and also set
launcherMode="singleTask"
,
• I’ve set
<deeplink/>
in navigation graph.
• I’ve handled intent extras in fragment.
My flow is;
• User clicks to forgot password, fills edit texts then requests deeplink mail. Works fine
• User clicks to deeplink in email and selects app then navigates to
CreatePasswordFragment
automatically (deeplink destination fragment) & (I can handle args here, works fine also)
The problem is;
Sometimes
if app is open on background, (for example I requested mail then pressed home button) and when I click deeplink, last fragment runs instead of destination fragment which is
CreatePasswordFragment
Any ideas about what may cause the problem?
Thanks!
The problem is that, if app is open in background, sometimes