If you open your activity from a notifications' `P...
# compose
f
If you open your activity from a notifications'
PendingIntent
, how would you make it navigate to a specific composable screen? Should I send an argument via the intent and let the activity navigate or is there a better way?
z
Sending an argument representing a type\enum, that can be later sorted in the activity for navigation seems like a good approach, why do you feel there should be a better way?
f
@ziv kesten I just wanted to make sure I'm not missing a more "correct" way (like something with deep links)
thank you
z
To be honest like most things in compose ATM, the navigation patterns are all fairly new, so, not only is your question valid, there is a definite possibility that there is a better practice that we haven't come up with yet. If you think of something we would love for you to share here blob hug
f
ok 👍
thank you very much
actually turns out I was on the right track with deeplinks
they actually make it easier, using URLs
z
Did you show that in your stream? i would love to see that in action.
f
yes, i will upload the episode later today on https://youtube.com/c/FlorianWalther
🙌 1
132 Views