Commit 3213970c authored by Libin Lu's avatar Libin Lu Committed by GitHub

Update README.md

parent b37ec044
...@@ -404,8 +404,8 @@ class App extends Component { ...@@ -404,8 +404,8 @@ class App extends Component {
FCM.cancelAllLocalNotifications() FCM.cancelAllLocalNotifications()
FCM.cancelLocalNotification("UNIQ_ID_STRING") FCM.cancelLocalNotification("UNIQ_ID_STRING")
FCM.setBadgeNumber(1); // iOS only and there's no way to set it in Android, yet. FCM.setBadgeNumber(1); // iOS and supporting android.
FCM.getBadgeNumber().then(number=>console.log(number)); // iOS only and there's no way to get it in Android, yet. FCM.getBadgeNumber().then(number=>console.log(number)); // iOS and supporting android.
FCM.send('984XXXXXXXXX', { FCM.send('984XXXXXXXXX', {
my_custom_data_1: 'my_custom_field_value_1', my_custom_data_1: 'my_custom_field_value_1',
my_custom_data_2: 'my_custom_field_value_2' my_custom_data_2: 'my_custom_field_value_2'
......
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