cordova-plugin-badge icon indicating copy to clipboard operation
cordova-plugin-badge copied to clipboard

Ionic 2 usage sample

Open felipefdagaianet opened this issue 8 years ago • 4 comments

Hello guys,

There's an usage sample to implement this plugin with ionic 2? I'm very excited about use badge count without need to send a push notification to user and I think this plugin can help me a lot.

felipefdagaianet avatar Feb 17 '17 12:02 felipefdagaianet

@felipefda hi guys, how to badge increase when app receive notification form FCM

madara134 avatar Feb 21 '17 03:02 madara134

+1

mosinski avatar Feb 24 '17 02:02 mosinski

+1, how to increase the badge on a push notification?

yurik94 avatar Mar 23 '17 13:03 yurik94

Its can be used like this: not tested on the device But i am guessing it will work.

import { Http } from '@angular/http'; ... declare var cordova: any;

onDeviceReady() { cordova.plugins.notification.badge.hasPermission(function (granted) { alert("hasPermission granted"+ granted); }); cordova.plugins.notification.badge.set(1);

}

barthwal avatar Nov 17 '17 10:11 barthwal