From 7e68d5eb11e9675ff213c3e0748368b443c70070 Mon Sep 17 00:00:00 2001 From: Salakar Date: Tue, 10 Jul 2018 22:15:50 +0100 Subject: [PATCH] [iid][ios] temporarily remove Messaging dependency for v4.3.0 release until an outcome is agreed on original PR #1215 --- ios/RNFirebase/instanceid/RNFirebaseInstanceId.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ios/RNFirebase/instanceid/RNFirebaseInstanceId.m b/ios/RNFirebase/instanceid/RNFirebaseInstanceId.m index 2720036b..80d79a6e 100644 --- a/ios/RNFirebase/instanceid/RNFirebaseInstanceId.m +++ b/ios/RNFirebase/instanceid/RNFirebaseInstanceId.m @@ -1,7 +1,7 @@ #import "RNFirebaseInstanceId.h" #if __has_include() -#import +//#import #import @implementation RNFirebaseInstanceId @@ -32,9 +32,9 @@ RCT_EXPORT_METHOD(getToken:(NSString *)authorizedEntity resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) { NSDictionary * options = nil; - if ([FIRMessaging messaging].APNSToken) { - options = @{@"apns_token": [FIRMessaging messaging].APNSToken}; - } +// if ([FIRMessaging messaging].APNSToken) { +// options = @{@"apns_token": [FIRMessaging messaging].APNSToken}; +// } [[FIRInstanceID instanceID] tokenWithAuthorizedEntity:authorizedEntity scope:scope options:options handler:^(NSString * _Nullable identity, NSError * _Nullable error) { if (error) { reject(@"instance_id_error", @"Failed to getToken", error);