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]: Issue with Firebase and OneSignal Push Notifications on iOS – Interference with Foreground Notifications and Click Actions #989

Open
2 of 3 tasks
sohanvInx opened this issue Jan 16, 2025 · 0 comments

Comments

@sohanvInx
Copy link

What happened?

After integrating OneSignal into my Flutter project alongside Firebase, I have encountered the following issues on iOS:

Foreground Notifications: Firebase push notifications are no longer displaying when the app is in the foreground. I suspect OneSignal is intercepting or blocking these notifications.

Click Action Handling: When a user clicks on a notification (from Firebase), the action is interrupted by OneSignal's notification handling. This causes the app to not respond to the click action as expected.

Steps to reproduce?

1. Integrate both OneSignal and Firebase into a Flutter project for iOS.
2. Send a Firebase push notification while the app is in the foreground.
3. Observe that the Firebase notification is not displayed.
4. Send a notification from Firebase and click it.
5. Notice that it does not occur due to OneSignal intercepting the click action.

What did you expect to happen?

Firebase push notifications should be displayed in the foreground.
Click actions for both Firebase and OneSignal notifications should work independently without interference.

OneSignal Flutter SDK version

5.0.2

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

VERBOSE: network response (OSRequestGetInAppMessages) with URL https://api.onesignal.com/apps/6e224ac3-f5f0-4672-902e-e9d3934fd956/subscriptions/c824dc2a-70c6-4843-a4ea-8326b5dee01c/iams: {
    headers =     {
        "Access-Control-Allow-Origin" = "*";
        "Alt-Svc" = "h3=\":443\"; ma=86400";
        "Content-Length" = 22;
        "Content-Type" = "application/json; charset=utf-8";
        Date = "Thu, 16 Jan 2025 11:25:54 GMT";
        Priority = "u=3,i=?0";
        Server = cloudflare;
        "Strict-Transport-Security" = "max-age=15552000; includeSubDomains";
        Via = "1.1 google";
        "access-control-allow-headers" = "SDK-Version,Content-Type,Origin,Authorization,OneSignal-Subscription-Id";
        "cf-cache-status" = DYNAMIC;
        "cf-ray" = "902dbf5fda3f0330-AMD";
        "server-timing" = cfExtPri;
        traceparent = "00-2718c1e0ac31ff07f92515cfd9a3ed4c-929e6628702566c0-00";
    };
    httpStatusCode = 200;
    "in_app_messages" =     (
    );
}
VERBOSE: getInAppMessagesFromServer success
VERBOSE: updateInAppMessagesFromServer
VERBOSE: resetRedisplayMessagesBySession with redisplayedInAppMessages: {
}
VERBOSE: Evaluating in app messages

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant