I am new to Firebase Cloud Messaging and push notifications.
When we register for push notifications, this method is called
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data)
{
}
and then, to send a push notification, we use this line of code to get a token:
let myToken = FIRInstanceID.instanceID().token()!
Now I want to ask, what is the difference between these tokens?
source
share