Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
react-native-fcm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
react-native-fcm
Commits
9c2d10c4
Commit
9c2d10c4
authored
Jul 16, 2017
by
Riyaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes in readMe and ios function
parent
0c50da96
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
README.md
README.md
+9
-7
ios/RNFIRMessaging.m
ios/RNFIRMessaging.m
+2
-2
No files found.
README.md
View file @
9c2d10c4
...
@@ -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
});
}
}
}
}
```
```
...
...
ios/RNFIRMessaging.m
View file @
9c2d10c4
...
@@ -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
);
}
}
}];
}];
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment