Recently I faced an issue while changing permission manually from outside of the app when the app is in background. This leads to error and loses it's state.
I searched S/O for the perfect strategy to face this issue but couldn't find rich answer about this. Some saying that the process is being recreated.
Can anybody enlighten me about this issue?
I want to know exactly what happens in this scenario and how to persist state and data while user changes permission manually and comes back to the app.
Thanks.