Skip to content

Commit

Permalink
Correct permission name to android.permission.POST_NOTIFICATIONS in…
Browse files Browse the repository at this point in the history
… documentation (#1087)
  • Loading branch information
peter-tackage authored Aug 15, 2023
1 parent 82edd7c commit b0a5a9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,16 @@ interceptorBuilder.addBodyDecoder(ProtoDecoder).build()

### Notification Permission 🔔

Starting with Android 13, your apps needs to request the `POST_NOTIFICATION` permission to the user in order to show notifications.
Starting with Android 13, your apps needs to request the `android.permission.POST_NOTIFICATIONS` permission to the user in order to show notifications.
As Chucker also shows notifications to show network activity you need to handle permission request depending on your app features.
Without this permission Chucker will track network activity, but there will be no notifications on devices with Android 13 and newer.

There are 2 possible cases:
1. If your app is already sending notifications, you don't need to do anything as Chucker will
show a notification as soon as the `POST_NOTIFICATION` permission is granted to your app.
show a notification as soon as the `android.permission.POST_NOTIFICATIONS` permission is granted to your app.
1. If your app does not send notifications you would need to open Chucker directly (can be done via shortcut, which is added to your app by default when Chucker is added)
and click `Allow` in the dialog with permission request. In case you don't allow this permission or dismiss that dialog by mistake, on every Chucker launch there will be
a snackbar with a button to open your app settings where you can change permissions settings. Note, you need to grant `POST_NOTIFICATION` to your app in Settings as there
a snackbar with a button to open your app settings where you can change permissions settings. Note, you need to grant `android.permission.POST_NOTIFICATIONS` to your app in Settings as there
will be no separate app in Apps list in Settings.

## Migrating 🚗
Expand Down

0 comments on commit b0a5a9f

Please sign in to comment.