Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct permission name to android.permission.POST_NOTIFICATIONS in docs #1087

Merged
merged 1 commit into from
Aug 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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