I develop an app and support Android 6.0. When I reset app preferences in Settings -> Apps -> Reset app preferences, all permissions of my app are revoked and the app is not restarted. Failure to restart the app after revoking its permissions can cause many unexpected crashes.
How should I handle this case?
The app is restarted when I revoke its permissions manually (Settings -> Apps -> My app -> Permissions).