diff --git a/ios/RNFirebase/messaging/RNFirebaseMessaging.m b/ios/RNFirebase/messaging/RNFirebaseMessaging.m index c77320c351..654cb267ad 100644 --- a/ios/RNFirebase/messaging/RNFirebaseMessaging.m +++ b/ios/RNFirebase/messaging/RNFirebaseMessaging.m @@ -108,9 +108,7 @@ - (void)messaging:(nonnull FIRMessaging *)messaging // ** Start React Module methods ** RCT_EXPORT_METHOD(getToken:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { - if (initialToken) { - resolve(initialToken); - } else if ([[FIRInstanceID instanceID] token]) { + if ([[FIRInstanceID instanceID] token]) { resolve([[FIRInstanceID instanceID] token]); } else { NSString * senderId = [[FIRApp defaultApp] options].GCMSenderID;