diff --git a/README.md b/README.md index 66e4845..99ad8e5 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,11 @@ const {FancyNotifications} = Plugins; async function updateBadgeCount() { const check = await FancyNotifications.hasPermission(); if(check.value){ - FancyNotifications.setBadgeCount(2); + FancyNotifications.setBadgeCount({ count: 2 }); }else{ const request = await FancyNotifications.requestPermission(); if(request.value){ - FancyNotifications.setBadgeCount(2); + FancyNotifications.setBadgeCount({ count: 2 }); }else{ // User failed to grant permission show some dialog } @@ -42,4 +42,4 @@ async function updateBadgeCount() { ## TODO -- [ ] Add Notifications Support \ No newline at end of file +- [ ] Add Notifications Support