WAI
Status Update
Comments
mu...@gmail.com <mu...@gmail.com> #2
To clarify the onCreate is called twice, but that seems to be intended behavior for deeplinks.
il...@google.com <il...@google.com> #3
Navigation enforces that all Intents that use NEW_TASK
also have CLEAR_TASK
set to ensure a consistent activity back stack, so it is working as intended that your Activity is created twice in cases where a calling app only uses NEW_TASK
(FWIW, they should generally not be using NEW_TASK
, but open your app in their task so that users can hit the system back button to return to the app - the text message app on an emulator is a bad example to use).
Description
Version used: 2.2.0
Devices/Android versions reproduced on: emulator/api 29
Sample project included
The problem seems to be happen only when application is opened using deeplink, in that case the MainActivity is opened twice.