https://kotlinlang.org logo
#compose
Title
# compose
f

Florian Walther (live streaming)

12/26/2021, 3:11 PM
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

ziv kesten

12/26/2021, 3:20 PM
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

Florian Walther (live streaming)

12/27/2021, 10:58 AM
@ziv kesten I just wanted to make sure I'm not missing a more "correct" way (like something with deep links)
thank you
z

ziv kesten

12/27/2021, 11:01 AM
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

Florian Walther (live streaming)

12/27/2021, 11:02 AM
ok 👍
thank you very much
actually turns out I was on the right track with deeplinks
they actually make it easier, using URLs
z

ziv kesten

12/27/2021, 3:48 PM
Did you show that in your stream? i would love to see that in action.
f

Florian Walther (live streaming)

12/27/2021, 3:58 PM
yes, i will upload the episode later today on https://youtube.com/c/FlorianWalther
🙌 1
113 Views