I have an activity with two tabs. Clicking on two tabs will change the the fragments below the tabs. While that activity is in front I give out a notification, After that I minimize the app and kill that activity(not force stopping).
My problem is that am not getting call back in onDestroy
while the activity is been killed by the user. Now if I click the notification the app will force close and thats because the activity for pending intent is been missing. Why am not getting the call back in onDestroy?
It is not sure to get callback in fragment's onDestroy()
. When we kill the app Activity's onDestroy()
will get the callback and the activity will be killed and fragment may not get callback.