Skip to content

[firebase_messaging]: <[I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '808662265677'.Be sure to re-retrieve the FCM token once the APNS device token is set. 2023-11-24 23:46:40.037190-0500 Tailored[9893:4209932] 10.17.0 - [FirebaseMessaging][I-FCM002022] Declining request for FCM Token since no APNS Token specified> #11946

@yunsanch

Description

@yunsanch

Is there an existing issue for this?

  • I have searched the existing issues.

Are you aware of the differences between iOS and Android background message handling?

  • I understand that iOS and Android background messages behave differently, and I've designed my application with that in mind.

Do you have an active Apple Developer account?

  • I have an active Apple Developer account.

Are you using a physical iOS device to test background messages?

  • I am using a physical iOS device to test background messages.

Have you enabled "Remote Notifications" & "Background Mode" (Checking options for "Background Processing" & "Remote Notifications") in your app's Xcode project?

image

Have you created an APNs key in your Apple Developer account & uploaded this APNs key to your Firebase console?

image

Have you disabled method swizzling for Firebase in your app?

image

Are you sending messages to your app from the Firebase Admin SDK?

image

Have you requested permission from the user to receive notifications?

  • I have the relevant permission to receive notifications.

Have you used the 'Console' application on your macOS device to check if the iOS device's system is throttling your background messages?

Message ID: 1700887822751310
whats this [AnyHashable("gcm.message_id"): 1700887822751310, AnyHashable("google.c.sender.id"): 808662265677, AnyHashable("google.c.fid"): csX_0W0UKUP6mVDFVqHtvd, AnyHashable("google.c.a.e"): 1, AnyHashable("body"): get the alert boys, AnyHashable("aps"): {
alert = {
body = "get the alert boys";
title = "testing fucntions on update";
};
}]

Additional context and comments

i keep getting this errror on console

FirebaseMessaging][I-FCM002022] APNS device token not set before retrieving FCM Token for Sender ID '808662265677'.Be sure to re-retrieve the FCM token once the APNS device token is set. 2023-11-24 23:46:40.037190-0500 Tailored[9893:4209932] 10.17.0 - [FirebaseMessaging][I-FCM002022] Declining request for FCM Token since no APNS Token specified
then i do get a token and then still getting the error afterwords
error to subcribed to topic : Error Domain=com.google.fcm Code=505 "No APNS token specified before fetching FCM Token" UserInfo={NSLocalizedFailureReason=No APNS token specified before fetching FCM Token} Firebase registration token: Optional("csX_0W0UKUP6mVDFVqHtvd:APA91bGnxPIT6PL5MMF7diwQFFEmnmq26smIk75bjBKg9XFLR3b_jaDYoAAkMWRa5GFOhMHGjGzfDtHIXOPjcqixB-a-y6lXgnZ94Tf7KEmBijTKVcbxtWvL5ZEx59OoSBmtmDAm8jZ9") ["token": "csX_0W0UKUP6mVDFVqHtvd:APA91bGnxPIT6PL5MMF7diwQFFEmnmq26smIk75bjBKg9XFLR3b_jaDYoAAkMWRa5GFOhMHGjGzfDtHIXOPjcqixB-a-y6lXgnZ94Tf7KEmBijTKVcbxtWvL5ZEx59OoSBmtmDAm8jZ9"] 2023-11-24 23:46:40.382326-0500 Tailored[9893:4209933] 10.17.0 - [FirebaseMessaging][I-FCM002010] The subscription operation failed due to an error getting the FCM token: Error Domain=com.google.fcm Code=505 "No APNS token specified before fetching FCM Token" UserInfo={NSLocalizedFailureReason=No APNS token specified before fetching FCM Token}.

i even get the meesaahe when using the node.js function or scheudleing thru firebase when hardcoding the fcm token observed here
Message ID: 1700887822751310
whats this [AnyHashable("gcm.message_id"): 1700887822751310, AnyHashable("google.c.sender.id"): 808662265677, AnyHashable("google.c.fid"): csX_0W0UKUP6mVDFVqHtvd, AnyHashable("google.c.a.e"): 1, AnyHashable("body"): get the alert boys, AnyHashable("aps"): {
alert = {
body = "get the alert boys";
title = "testing fucntions on update";
};
}]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions