Core Push Notifications

npm version Testing codecov

Redis universal-core module abstraction.

Install

Copy
npm install @universal-packages/core-push-notifications

npm install @universal-packages/core

Initialization

Copy
ucore initialize push-notifications

Global

Core expose PushNotifications instance as the global subject if core modulesAsGlobals config is true.

Copy
pushNotificationsSubject.pushNotification([token], { title: 'Message', body: 'From your SO' })
Copy
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.

Copy
/// <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.

License

MIT licensed.