'If I denied the permission of the running app, the app data will disappear

If I denied the permission of the running app, the app data will disappear.

The way to change the permission was done in settings.

Step.

  1. run my app.
  2. switch my app to the background.
  3. run settings app.
  4. change the permissions of my app.
  5. switch my app to the foreground.
  6. My app variable data disappears.
UserManager.getInstance().getUserMe()

This is static data. The data disappears and sendbird connection will be disconnected.

Why is this happening?



Solution 1:[1]

https://youtu.be/f17qe9vZ8RM?t=657

Kindly watch this video. In this video, he says that the process is killed when permission is changed. Sorry, I could not find any documentation on that.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Abhilash