I'm using Jetpack Navigation for deeplinks. I've added android:launchMode="singleTask"
to my Activity.
Deeplink is redirected correctly if the app wasn't opened before. However, if the app exists in memory, the app is coming to the foreground but deeplink isn't opened correctly.
My device is Pixel 2 with Android 10.
I see that onCreate
is called only the first time I'm opening app. However, onNewIntent
is called every time I'm clicking deeplink.
Is it a bug in Jetpack Navigation or I forgot about something when setting it up?