Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: iOS, Foreground Notification is send twice #91

Open
2 of 3 tasks
aliakkawi opened this issue Oct 13, 2024 · 0 comments
Open
2 of 3 tasks

[Bug]: iOS, Foreground Notification is send twice #91

aliakkawi opened this issue Oct 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@aliakkawi
Copy link

Documentation

  • I've checked the guide, but it doesn't help me to resolve the issue.

Description

Hi, we are using FCM along with the Pushwoosh SDK. Before integrating Pushwwosh we used to handle Foreground Alerts using Local Notifications and therefore after implementing Pushwwosh the Notification is sent twice for iOS.
We've already tried the following solutions:
1.
`Pushwoosh.getInstance.setShowForegroundAlert(false);
2. In the AppDelegate:

override func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void)
    {
        if UIApplication.shared.applicationState == .active {
            completionHandler([])
        } else {
            completionHandler([.alert, .badge, .sound])
        }
    }

Bug severity

High

Steps to Reproduce

Send FCM Notifications for iOS devices.

Your Pushwoosh Flutter plugin version

2.2.25

flutter package version

3.24.3

Last worked Pushwoosh Flutter plugin version (if any)

No response

Affected platforms

  • Android
  • iOS

Affected OS versions and/or devices

iOS devices

Workaround

No response

Relevant log output

No response

@aliakkawi aliakkawi added the bug Something isn't working label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant