I'm launching my MainActivity from a notification click. Through this intent, I'm sending a piece of data. How can I get this piece of data to the start destination? I'm using navigation compose.
l
louiscad
10/28/2021, 9:43 AM
Grab it with the
intent
property from
onCreate
, or from the
intent
parameter in
onNewIntent
if you set a
launchMode
like
singleTop
.
f
Florian
10/28/2021, 9:58 AM
thank you
Florian
10/28/2021, 9:58 AM
someone I lose the argument when I use singleTop
Florian
10/28/2021, 9:58 AM
if I don't use it, I open that screen twice, once without and then immediately with the argument