2

I want to explain users requirement of allowing permissions i.e., opt in

Starting from android 13 users are asked to opt-in for notifications.How can we handle this scenario.

Currently i want explain users importance of allowing notifications but what is the best way to show this message as the permission dialog is loading on app start immediately.

sergpetrov
  • 1,506
  • 1
  • 11
  • 20
RockyGlobal
  • 525
  • 5
  • 13

1 Answers1

3

Google recommends such a user-driven workflow for requesting notification permission for example: enter image description here

First, you need to show your custom screen where you explain why the user needs the notifications. If he agreed to be notified then you can ask to grant the permission to show the native permission dialog.
Also, the custom screen is necessary only if shouldShowRequestPermissionRationale() returns true because if it's false then it means the user has already blocked it and can allow it again from system settings only.

sergpetrov
  • 1,506
  • 1
  • 11
  • 20