Commit 9c2d10c4 authored by Riyaz's avatar Riyaz

minor fixes in readMe and ios function

parent 0c50da96
...@@ -373,12 +373,14 @@ class App extends Component { ...@@ -373,12 +373,14 @@ class App extends Component {
my_custom_data_2: 'my_custom_field_value_2' my_custom_data_2: 'my_custom_field_value_2'
}); });
FCM.deleteInstanceId().then(()={ FCM.deleteInstanceId()
.then( () => {
//Deleted instance id successfully //Deleted instance id successfully
//This will reset Instance ID and revokes all tokens. //This will reset Instance ID and revokes all tokens.
}).catch(error =>{
//Error while deleting instance id
}) })
.catch(error => {
//Error while deleting instance id
});
} }
} }
``` ```
......
...@@ -236,9 +236,9 @@ RCT_EXPORT_METHOD(deleteInstanceId:(RCTPromiseResolveBlock)resolve rejecter:(RCT ...@@ -236,9 +236,9 @@ RCT_EXPORT_METHOD(deleteInstanceId:(RCTPromiseResolveBlock)resolve rejecter:(RCT
[[FIRInstanceID instanceID]deleteIDWithHandler:^(NSError * _Nullable error) { [[FIRInstanceID instanceID]deleteIDWithHandler:^(NSError * _Nullable error) {
if (error != nil) { if (error != nil) {
reject([NSString stringWithFormat:@"%ld",error.code],error.localizedDescription,error); reject([NSString stringWithFormat:@"%ld",error.code],error.localizedDescription,nil);
} else { } else {
resolve(NULL); resolve(nil);
} }
}]; }];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment