-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed as not planned
Closed as not planned
Copy link
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infopartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androids/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't working
Description
Description
Using the package Plugin.Firebass to set up push notifications for MAUI. Many tutorials online exist for setting up push notifications now, however none showing how to receive messages.
if you send a message to the device onMessageReceiced will receive it as expected. However if you go to publish, it will not work. This is because by default MAUI disabled trimming for debug and enables it for release. So if you disable trimming along with AoT (doesn’t work without trimming enabled) then push notifications work fine and all is good. However, trimming and AoT are now disabled which is not ideal.
Steps to Reproduce
- Create new project.
- Follow install instructions for setting up Plugin.Firebase
- Create a new ServiceIntent for receiving push notifications like we used to do in Xamarin.Forms.
- Send notification to device, it won’t call onMessageReceived and instead only show a notification in the devices notification window.
Link to public reproduction project repository
None
Version with bug
7.0.49
Last version that worked well
6.0
Affected platforms
Android
Affected platform versions
Android 11 and up
Did you find any workaround?
Disable Trimming and AoT
Relevant log output
No response
Tviljan
Metadata
Metadata
Assignees
Labels
area-essentialsEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App InfoEssentials: Device, Display, Connectivity, Secure Storage, Sensors, App Infopartner/androidIssues for the Android SDKIssues for the Android SDKplatform/androids/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't working