From ae34ed3259c2b1a0c95df147050dbe0d9905c727 Mon Sep 17 00:00:00 2001 From: Raghu Ram M Date: Fri, 8 Nov 2019 12:30:41 +0530 Subject: [PATCH] update example code --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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