0.1.1 • Published 1 year ago

@cardsjd/pushnotification v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

��# PushNotification Use: import { PushNotification } from '@cardsjd/pushnotification'; this.PushNotification = new PushNotification(); //notification wire up event handlers this.pushNotification.onTokenUpdated = this.onNotificationTokenUpdated.bind(this); this.pushNotification.onMessage = this.onNotificationMessage.bind(this); //init and request notification this.pushNotification.init(); this.pushNotification.RegisterNotification(); onNotificationTokenUpdated(token, deviceId) { //send token to server } onNotificationMessage(data) { //do something when notification is received }

0.1.1

1 year ago

0.1.0

1 year ago