-
Notifications
You must be signed in to change notification settings - Fork 147
Push Notifications are not getting triggered on Android 12 and latest. #761
Comments
I have similar problems with version 123.0.0.7 with Release profile. The Debug build profile DOES work for me for some reason. Please fix this. |
I think you need to grant/add permissions. Something like: |
You need to realize that these are only bindings against the android libraries here. Unless one of the bindings is wrong, there aren't going to be any sort of bugs that can be fixed here. Even if you've added android.permissions.POST_NOTIFICATIONS to your manifest, you still have to request the permission. That particular permission is only required for ANDROID 13 (API 33+). For what it's worth, this binding is working just fine and I use it in my library Shiny without issue. |
Hmm. Well in my case at least the application asks for permission to show notifications and the user is prompted at first startup. Also the portal test notifications do show up when the app is running in the background. In my case at least. Could this be a signing issue? 🤔 |
Update: turns out Trimming in release mode in Maui .net 7 was my issue. < PublishTrimmed>False< /PublishTrimmed> (Remove spaces) Still unsure which component broke due to the Trimming. Will report back if I find more. |
Xamarin.Android Version (eg: 6.0): 5.0.0.2578
Operating System & Version (eg: Mac OSX 10.11): Ventura 13.1
Xamarin.Firebase.Messaging
Describe your Issue
When trying to trigger a "test send" notification from Microsoft Azure notification hub, the result says that the notification has been sent successfully, but the Android devices with OS 12 and latest don't seem to get any notifications. However, the Android devices with OS version less than 11 are getting the notifications.
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
NOTE: Please DO NOT submit screenshot images. Images are not searchable!
Minimal Repro Code Sample
If you want to speed up investigation and bug fixing: please provide minimal repro sample for tests.
Steps to Reproduce (with link to sample solution if possible):
-> Login to the application
-> In the relevant notification hub, click on test send
-> Provide the tag expression
-> Click on "Test Send"
-> Observe that the result says " The Push Notification has been sent successfully ".
-> But your device doesn't receive any.
Include any relevant Exception Stack traces, build logs, adb logs:
The text was updated successfully, but these errors were encountered: