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] Missing notifications permission

See original GitHub issue

Bug

Since Android API 33 developers are obliged to manually request permissions for push notifications

This library is not doing that for Android, so push notifications do not work on Android 13.

Would be nice to have that permissions request added when we use requestPermissions: true

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tdammy92commented, Dec 5, 2022

@tdammy92 add these two line in AndroidManifest.xml

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

@komailabbas12 I did, even requsted Notification permission. did not work…

0reactions
levepiccommented, Dec 5, 2022

For me, first run of the app doesnt bring up permission request, it freezes (ANR) on real device but runs on emulator. For the second run it correctly shows the permission request and everything works fine. Google Play console is full of ANRs originating from this on android 13. Solved it by upgrading to android sdk level 33 to request permission with https://github.com/zoontek/react-native-permissions (although automatic launch for the app on emulator doesnt work with sdk 33 but it works on real device)

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 >
Android 13 push notification permission: how to get ready?
Google announced last week that in Android 13, apps will have to ask permission before they'll be able to send push notifications.
Read more >
Android 13 not asking for POST_NOTIFICATIONS permission
Is there anything I'm missing? If not, how (and when) do I request the Permission? android · permissions · notifications · android-13.
Read more >
How to customize notification permissions in Android 13
How to customize notification permissions in Android 13 for new apps · 1. Open a newly installed app on your phone for the...
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