Flutter FCM for iOS - Reports Issue #5705
Replies: 32 comments 22 replies
-
@karthikeyanp307 Also, provide your |
Beta Was this translation helpful? Give feedback.
-
@darshankawar I'm also facing the same issue for my web-app, with firebase_messaging v9.0.1. The notifications doesn't work in iOS devices, for any browsers. For Android, It works good for Chrome but fails for Firefox and Opera.
Can you please suggest a solution ? |
Beta Was this translation helpful? Give feedback.
-
having same issue as well |
Beta Was this translation helpful? Give feedback.
-
@darshankawar - I tried with the https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging/firebase_messaging/example. When configured with FCM - google-services it works fine for android and getting the same error as above for iOS. "APNS device token not set before retrieving FCM Token for Sender ID ''. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set." My iOS device is connected to internet and there were no network related issues while running this. Also getAPNSToken() always returns null. Please help me on this. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@karthikeyanp307 Also, the document states that, |
Beta Was this translation helpful? Give feedback.
-
@darshankawar - Thanks for your reply. I have followed the steps provided in the reference link. I used firebase_messaging: ^7.0.3 earlier with the same application and both android & iOS were working fine. When upgraded the same application to the latest firebase messaging v9.0.1 I started getting this error for iOS.But the same works fine for android. Is there anything specific that we need to do, while upgrading to the latest firebase messaging library. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@darshankawar - I have re-verified the steps in the reference link, but facing the same issue still now. Thanks. |
Beta Was this translation helpful? Give feedback.
-
@darshankawar, I have been following this thread for a while due to I'm facing the same issue, is this something that google is interested to fix? Is there any information that you require so we can help to make progress in this bug? . Perhaps if you can point us in to the firebase module source code we could try to contribute fixing the code? Thank you very much for your help |
Beta Was this translation helpful? Give feedback.
-
Cc: @Salakar for further insights. |
Beta Was this translation helpful? Give feedback.
-
Facing the same issue with v9.1.2. Trying to make it work with a new app and getting the following error:
I have followed all the steps mentioned in documentation, checked it twice but still doesn't work. Android works fine. |
Beta Was this translation helpful? Give feedback.
-
@Salakar - Could you please help me on resolving this. Is there anything missing in the documentation that I am supposed to do to make this work? Let me know for any clarification or inputs to help us on this. |
Beta Was this translation helpful? Give feedback.
-
I am also getting the same error with null APNs Token |
Beta Was this translation helpful? Give feedback.
-
For messaging related issues it's helpful to provide a lot more detail on your problem to allow maintainers such as myself to help on these issues, e.g.;
|
Beta Was this translation helpful? Give feedback.
-
Hi @Salakar , Thanks for your reply. We are trying to assign custom notification sound while sending notification to iOS device. But we are not even receiving the notification when tried with the latest firebase_messaging library. Below are the required details. • We are sending the notification via Postman for testing and in production via Spring boot application. o URL - https://fcm.googleapis.com/fcm/send o Body
• Source Code - https://github.com/karthikeyanp307/my_flutter_fcm_app/tree/master/my_app (We are using your example project and have setup the fcm google service info into it). I have removed the google services file for android and iOS app. • Device Info - iPhone 8; OS v13.5.1; Apple • Notification are being sent but not received in device in all the app states i.e., foreground, background and when app is killed • Version Info
• Logs
Kindly help us in resolving this. Thanks in advance. Let us know if you need any more details regarding. |
Beta Was this translation helpful? Give feedback.
-
Hi @Salakar , Adding to the above post. I have used the FCM Sample application downloaded from https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_messaging/firebase_messaging/example and just added the google services json for iOS. Let us know if you need any more details. |
Beta Was this translation helpful? Give feedback.
-
hi, it didn't work although i tested it on real device. I have followed all the steps mentioned in documentation, but doesn't work. |
Beta Was this translation helpful? Give feedback.
-
Is there any progress in this matter? I have not been able to resolve this case, so I'm developing a native IOS plugin. It seems that is the solution while the Flutter team fix the issue. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Facing same issue, it work well before update, after update iOS firebase_messaging is showing this warning and not receiving notifications any more. APNS device token not set before retrieving FCM Token for Sender ID ''. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set. |
Beta Was this translation helpful? Give feedback.
-
Same issue |
Beta Was this translation helpful? Give feedback.
-
Anyone able to resolve this issue ? @Salakar @karthikeyanp307 ? |
Beta Was this translation helpful? Give feedback.
-
same issue any update |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hey, even i am getting same issue
when trying to retrieve APNS token through |
Beta Was this translation helpful? Give feedback.
-
same issue, any update ? |
Beta Was this translation helpful? Give feedback.
-
same isssue here any update ?? |
Beta Was this translation helpful? Give feedback.
-
The audacity to close, lock and move such a thread from issues to discussion is out of this world. FlutterFire dudes should be paying more attention to such blocker issues that are breaking thousands of apps worldwide. |
Beta Was this translation helpful? Give feedback.
-
@papirovdavid please upgrade with latest version, issue resolved. |
Beta Was this translation helpful? Give feedback.
-
Same issue. Preceded by "The default Firebase app has not yet been configured." The doc for doing a CLI initialization makes no mention of the GoogleServices-Info.plist file for iOS, and so I didn't install it. Installing GoogleServices-Info.plist allowed FlutterFire to successfully initialize, and for messaging via APNS to work for me. |
Beta Was this translation helpful? Give feedback.
-
I've tried all the solutions, but on some devices, it's giving this error. Please provide a solution if anyone has resolved it. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using firebase_messaging v9.0.1 in my Flutter application. On configuring this library based on the https://pub.dev/packages/firebase_messaging/example, I am able to receive the notification for android in both foreground and background states. But the same for iOS is not working. I am getting the below error,
APNS device token not set before retrieving FCM Token for Sender ID ''. Notifications to this FCM Token will not be delivered over APNS.Be sure to re-retrieve the FCM token once the APNS device token is set.
Do I want to call any other function apart from FirebaseMessaging.instance.getToken() for iOS? Please help.
Beta Was this translation helpful? Give feedback.
All reactions