Skip to content

Conversation

techsouravganguly
Copy link

Issue #227 was raised regarding NotificationPermission not displaying after a dangerous permission is rejected twice. Upon analysis, the flow led to an infinite loop where PolicyManagementActivity repeatedly called askNotificationPermission on resume.

New Flow after Changes:

  • PolicyManagementActivity.onResume -> askNotificationPermission
  • Check if the permission is denied twice using shouldShowRequestPermissionRationale
  • If not, request permission directly.
  • If denied twice, show a Snackbar to enable it from settings.

@techsouravganguly techsouravganguly force-pushed the Fix-askNotificationPermission branch from 0ebb606 to fdeae76 Compare October 7, 2024 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant