Foreground Messages not received via onMessage if userNotificationCenter:willPresentNotification:withCompletionHandler: implemented #12902
Unanswered
mahmutpinarbasi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We read following document https://firebase.google.com/docs/cloud-messaging/flutter/receive for receiving foreground messages on flutter, however we need your help to understand relationship between
onMessage
and implementinguserNotificationCenter:willPresentNotification:withCompletionHandler:
delegate function.Right now, if we implement
userNotificationCenter:willPresentNotification:withCompletionHandler:
delegate,onMessage
is not being called at all -on iOS-. HoweveronMessage
is being called if we don't implementuserNotificationCenter:willPresentNotification:withCompletionHandler:
.So the question is;
a) is this expected behaviour. Means; If we implement
userNotificationCenter:willPresentNotification:withCompletionHandler:
; we took over the responsibility to manage foreground messages. -if that's the case, updating the documentation can be very helpful-b) this behaviour is not expected, this is something we should analyse on our app.
c) is this a bug
Beta Was this translation helpful? Give feedback.
All reactions