-
Notifications
You must be signed in to change notification settings - Fork 4k
🐛 [firebase_messaging] - iOS notifications are not displayed #4437
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
Comments
Hi @tsahnarExp |
I'm seeing some weird behavior on this too. Immediately after upgrading, some of my PN work and some don't. Sometimes they end up in the |
Here is the output of flutter pub deps:
What will it give me to spend time on trying to reproduce it on the official example? This is something that worked and still working in a build before I made the updated. Since upgrading no notifications are displayed.. Tried to also replace the firebase core version to firebase_core : ^0.5.0+1 - (like suggested in #4152) still no luck. |
The issue could have arisen from the project version migration. 1.17 is very outdated by this point and a freshly created project with the latest stable contains a lot of changes and fixes. If you do not run into this issue when just using the code from the official example in a fresh project (after following the setup) then the issue is in the project config.
|
@markusaksli-nc i'll try with the 8.00-dev.1. Can I share my project config to try and find out what is causing this? Any specific file/config? With 8.0.0-dev.11 I cant even get this to trigger (on simulator) when app is in foreground. No message is printed.
|
What are you using to send the notification? What does the payload look like? |
i'm doing just the most basic test with firebase console, sending test message. Something that works when I try with the build before the upgrade |
BTW I tried to upload the app to test flight, the app was successfully uploaded but I got this warning from apple: ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service, but the app signature's entitlements do not include the 'aps-environment' entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the 'aps-environment' entitlement. Xcode does not automatically copy the aps-environment entitlement from provisioning profiles at build time. This behavior is intentional. To use this entitlement, either enable Push Notifications in the project editor's Capabilities pane, or manually add the entitlement to your entitlements file. For more information, see https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/HandlingRemoteNotifications.html#//apple_ref/doc/uid/TP40008194-CH6-SW1. I have the Capabilities enabled in Xcode so not sure whats the issue here also got this in ios/Runner/Runner.entitlements aps-environment could the issue be related to this? |
Could you try sending a notification through FCM? Are any errors logged to Xcode console? |
Didnt see any errors. Are the notifications supposed to work when running the build on device from Xcode? |
Did you find any solution for this? |
The latest dev version should be working fine but since you are having the same strange issue, I would recommend you take a look at the discussion in #4097. Moreover since this issue is now just another manifestation of the mentioned one I'm going to close this as a duplicate. If you are unable to solve the issue you can comment on #4097 with your exact case and mention this issue for context. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I upgraded the flutter version of app to the latest (1.22.5), since then notifications are not displayed. I can see in the logs that the onMessage callback is being called and the notification data is being sent - testing via the firebase console.
This the output from flutter doctor:
I know that sometimes in simulator it does not work, so I always try on real device.
I upgraded to firebase messaging latest version and using ^7.0.3.
In the version before upgrading (v1.17.0) when installing the build on device I do see the notifications.
I'll be happy to provide more info
thanks
The text was updated successfully, but these errors were encountered: