SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": Optional({
pusher = {
instanceId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
publishId = "pubid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
userShouldIgnore = 1;
};
}), "title": "DEBUG"]
flutter: {pusher: {userShouldIgnore: true, publishId: pubid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, instanceId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}}
SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": nil, "title": "DEBUG"]
SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": Optional({
pusher = {
instanceId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
publishId = "pubid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
userShouldIgnore = 1;
};
}), "title": "DEBUG"]
flutter: null
flutter: {pusher: {userShouldIgnore: true, publishId: pubid-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, instanceId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}}
SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": nil, "title": "DEBUG"]
SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": nil, "title": "DEBUG"]
flutter: null
flutter: null
SwiftPusherBeamsPlugin: message received: ["body": "DEBUG", "data": nil, "title": "DEBUG"]
flutter: null
Issue
When the app is in the foreground and receives a notification, the
onMessageReceivedInTheForegroundcallback is triggered multiple times.Expected Behaviour
onMessageReceivedInTheForegroundshould only be triggered once per notification.Steps to replicate
onMessageReceivedInTheForeground.Logs from Xcode for a single notification