Browse Source

Firebase token

Marino Faggiana 8 years ago
parent
commit
185d89f834
1 changed files with 5 additions and 0 deletions
  1. 5 0
      iOSClient/AppDelegate.m

+ 5 - 0
iOSClient/AppDelegate.m

@@ -458,6 +458,11 @@
         // FIREBASE
         [[FIRInstanceID instanceID] setAPNSToken:deviceToken type:FIRInstanceIDAPNSTokenTypeSandbox];
         
+        NSString *refreshedToken = [[FIRInstanceID instanceID] token];
+        NSLog(@"InstanceID token: %@", refreshedToken);
+
+        
+        
         CCMetadataNet *metadataNet = [[CCMetadataNet alloc] initWithAccount:app.activeAccount];
     
         NSDictionary *options = [[NSDictionary alloc] initWithObjectsAndKeys:pushToken, @"pushToken", pushTokenHash, @"pushTokenHash", devicePublicKey, @"devicePublicKey", nil];