BuckBuchanan
BuckBuchanan

Reputation: 570

WillPresentNotification is not being called in Maui app

I am using Firebase in my Maui app for push notification. It works on Android but I am having a problem with WillPresentNotification not being called on iOS.

I have made a new test app in iOS and it works fine but for some reason it doesn't work in my main app. I can't see what I have missed. Everything looks the same.

Any ideas? What could cause that not to fire? Thanks

Upvotes: 0

Views: 835

Answers (1)

Jianwei Sun - MSFT
Jianwei Sun - MSFT

Reputation: 4282

WillPresentNotification is not being called in Maui app

About this issue, you can try to use Firebase.plugin to fix it. For more details, see this case: .Net Maui iOS app with Push Notifications WillPresentNotification or DidReceiveNotificationResponse never gets called.

Other things related, you can also check out these threads: willPresentNotification not work as expected | Firebase Push Notifications in .NET MAUI (iOS).

Hope it can help you.

Update

For .NET 7, it is no longer supported, Obsolete. And as you said that the local notify code was trapping the event.

Upvotes: 0

Related Questions