Commit 818f9659 authored by Anders Back's avatar Anders Back Committed by Libin Lu

updated to FCM.setBadgeNumber(1) for more clarity (#228)

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