This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //In your app delegate, add the following | |
| static var deviceID = String() | |
| func messaging(_ messaging: Messaging, didRefreshRegistrationToken fcmToken: String) { | |
| guard let newToken = InstanceID.instanceID().token() else {return} | |
| AppDelegate.deviceID = newToken | |
| connectToFCM() | |
| } | |
NewerOlder