moallemi / MultiNavHost

Separate back stack history for each tab in Bottom Navigation View using Android Navigation Architecture Component
229 stars 27 forks source link

Fragments into inactive tabs don't receive onPause/onResume events. #4

Open marcouberti opened 4 years ago

marcouberti commented 4 years ago

When switching tabs, the current fragments of previously selected tabs don't receive the onPause()/onResume() events. This can be problematic in scenarios when you have to release resources, like stopping a video player. I checked this Google's sample and the events are triggered as expected.

Google Navigation Advanced Sample

amit7127 commented 3 years ago

Yes facing the same issue. Visible Fragment's onResume() not getting called. Any way to achieve this?

Faiyyazauxy commented 3 years ago

Same issue for me but the google navigation advanced sample has its own issue