Deep linking from Notification - how to pass data back up through the backstack?
问题 In my app, the user can select a category, then select an item within that category to finally view the item details. The standard/forward flow is: SelectCategoryFragment -> SelectItemFragment -> ViewItemDetailsFragment On selecting a category, the selectedCatId is passed via a Bundle from SelectCategoryFragment to SelectItemFragment : NavController navController = Navigation.findNavController(v); Bundle args = new Bundle(); args.putLong(SelectItemFragment.ARG_CATEGORY_ID, selectedCatId);