question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 13 Notification Permission

See original GitHub issue

Android 13 (SDK 33) needs apps to declare a new permission: https://developer.android.com/develop/ui/views/notificationsnotification-permission

Declare: <uses-permission android:name="android.permission.POST_NOTIFICATIONS">

Request permission if not granted (which isn’t to new apps on Android 13).

Check if notification channel is allowed before sending notifications to it: NotificationManager#areNotificationsEnabled()

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
Artim96commented, Oct 22, 2022

they can’t rid of the persistent notification…at least they should like it.

They should just minimize the notification. After all, the persistent notification is the easiest way to pause or stop the service if necessary.

2reactions
A7r-S6scommented, Oct 22, 2022

Well I’m missing the notification, too. I silenced and minimized it, sent it down to all the other notifications I don’t want to see permantently. Nevertheless I’d just like to be able to see it - and be able to have the “Pause” and “Resume” buttons available. Sometimes this is needed.

What’s worse, it seems the “Allow or block” notification for newly installed apps doesn’t seem to work either.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Notification runtime permission - Android Developers
Android 13 (API level 33) and higher supports a runtime permission for sending non-exempt (including Foreground Services (FGS)) notifications from an app: ...
Read more >
Android's New Notification Feature Is a Decade Overdue
And Android 13 just launched a feature requiring apps to ask users' permission before sending notifications. Overdue is an understatement.
Read more >
How to customize notification permissions in Android 13
1. Open your phone's Settings menu from the notification pane or app drawer. 2. Select Apps. 3. Tap See all apps.
Read more >
Exploring Android 13: Notification Runtime Permission
By this new change, your user has to grant this permission first before your app can post any notification. Also you as a...
Read more >
Deep Dive into Android Notifications Permission - Notificare
If your application uses notifications, users will receive a prompt to allow or deny them when the notification channel is created. This is ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found