Flutter FCM iOS Issue - APNS device token not set before retrieving FCM Token

1,928 views
Skip to first unread message

Karthikeyan P

unread,
Apr 6, 2021, 5:11:23 AM4/6/21
to Firebase Google Group

Hi Team,

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.

My iOS device is connected to internet and there were no network related issues while running this.

Do I want to call any other function apart from FirebaseMessaging.instance.getToken() for iOS? Please help.

Thanks,

Karthikeyan P

Reply all
Reply to author
Forward
0 new messages