Android 12 does not receive Push Notification
See original GitHub issue🐛 Bug Report
On Android 12 my app is not receiving push notifications. Phones with Android 11 and below do receive the push notifications.
Added manually to manifest:
<service android:name="crc6494e14b9856016c30.PNFirebaseMessagingService" android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
I tried it also with android:exported=“true” but same behaviour - no notifications on Android 12.
Hope that someone has a solution for this!
Used: Firebase.Plugin 3.4.1 TargetFramework Android 12 JDK 11
Issue Analytics
- State:
- Created 2 years ago
- Comments:24
Top Results From Across the Web
Push notifications not working in android 12
I have a notification problem. Since I upgraded the android api 30 to api 31, the firebase "push" notifications with ionic capacitor stopped ......
Read more >cannot receive the push notifications after upgrading ...
Make sure that all the apps installed on your phone are updated. Also, check all your notification settings. If the issue still persists,...
Read more >Fix: Android 12 Notifications Not Working
The reason you are not getting notifications on Android 12 could simply be because your battery or power saver mode is turned on....
Read more >Android notification issues? Try these simple 16 fixes
Disable Do Not Disturb (DND) Check app notification settings Check notification channels Check app settings Notification settings on the lock screen Disable Battery...
Read more >Android Notifications Not Showing Up? 10 Fixes You Can Try
Android Notifications Not Showing Up? 10 Fixes You Can Try · 1. Reboot Your Phone · 2. Review the App's Notification Settings ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I managed to get it work for Android 12 and Android 13 by using a combination of suggestions mentioned here;
First, I updated all my existing packages.
Second, I installed the latest version of the following packages as described by @Rishi2611; Xamarin.Firebase.Common Xamarin.Firebase.Messaging Xamarin.GooglePlayServices.Base Xamrarin.Firebase.Iid
Third, I added the following to my AndroidManifest.xml file;
And finally the fourth, to get it to work for Android 13, I added the following permission to the AndroidManifest.xml (this permission is requred for Anrdoid 13 and won’t work without it)
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
Then added the following code to MainActivity.cs to the end of OnCreate to request push notification permissions from the user on app start-up;
Make sure the target version is set to Android 13 (API Level 33).
Hopefully this helps someone out there who’s still struggling with this!
i have added in my manifest file
this is my
but still not getting notification