0

My end goal is to open a fragment on click of a notification. This answer seemed useful but NavDeepLinkBuilder creates a new instance of the activity which is not what I was looking for.

I also found this method which sends out intents to the existing activity but I'm not sure how to bring up the destination fragment from the activity.

sprajagopal
  • 322
  • 1
  • 4
  • 20
  • We have the same problem - did you find a solution? – mrbang Aug 06 '21 at 12:44
  • I believe my understanding of fragments was wrong. Yes, a new activity is created by the `NavDeepLinkBuilder` (with the specified fragment). So I ended up handling the fragment's state in the DB and re-populated it at the time of fragment creation. Lot of extra state handling but no other way (from what I understand). – sprajagopal Aug 06 '21 at 16:09

0 Answers0