Reputation: 47
Can someone guide me am having and error on my real device on IOS am using iphone 12
8.11.0 - [firebase/messaging][i-fcm002022] apns device token not set before retrieving fcm token
Even though check it twice again and again for the steps on appStore key,identifiers, etc.. then in xcode adding capability and so fort. But still have the error am having right now and don't know where to start looking for solution I've been searching for answers but no luck.
really thanks if you can help me on this.
Upvotes: 2
Views: 9788
Reputation: 964
Ask for permission
FirebaseMessaging.instance.requestPermission();
also add the Push Notification capability in the Signing & Capabilities tab of your project target in Xcode
Upvotes: 5