07-19-2023, 12:14 AM
I'm getting this error from Firebase Messaging API:
[Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/testTopic with token: (null)
But before:
Messaging.messaging().subscribe(toTopic: "/topics/testTopic")
I'm printing out the token like this:
print("TOKEN: \(InstanceID.instanceID().token() ?? "NO TOKEN")")
The result is:
TOKEN:cXPhGQ_inE4:APA91bEKZF5depHmIm9gDliCFRCRcnJf5LYy5FMg6nhpWvKU3o3HEtr1WTBHUiCZXT4XzhVg2oqXzhtfrgf83brtLdqXii546644ciMPO80tri4JPueQBClKbaomEfoh54ku8E2lw
So the token isn't *null*.
Am I doing something wrong? Anyone some help?
[Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/testTopic with token: (null)
But before:
Messaging.messaging().subscribe(toTopic: "/topics/testTopic")
I'm printing out the token like this:
print("TOKEN: \(InstanceID.instanceID().token() ?? "NO TOKEN")")
The result is:
TOKEN:cXPhGQ_inE4:APA91bEKZF5depHmIm9gDliCFRCRcnJf5LYy5FMg6nhpWvKU3o3HEtr1WTBHUiCZXT4XzhVg2oqXzhtfrgf83brtLdqXii546644ciMPO80tri4JPueQBClKbaomEfoh54ku8E2lw
So the token isn't *null*.
Am I doing something wrong? Anyone some help?