@universal-packages/core-push-notifications
v1.2.21
Published
Push Notifications universal-core module abstraction
Downloads
114
Readme
Core Push Notifications
Redis universal-core module abstraction.
Install
npm install @universal-packages/core-push-notifications
npm install @universal-packages/core
Initialization
ucore initialize push-notifications
Global
Core expose PushNotifications
instance as the global subject if core modulesAsGlobals
config is true.
pushNotificationsSubject.pushNotification([token], { title: 'Message', body: 'From your SO' })
core.coreModules.pushNotificationsModule.subject.pushNotification([token], { title: 'Message', body: 'From your SO' })
Typescript
In order for typescript to see the global types you need to reference the types somewhere in your project, normally ./src/globals.d.ts
.
/// <reference types="@universal-packages/core-push-notifications" />
This library is developed in TypeScript and shipped fully typed.
Contributing
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.