JSPM

loopback-component-push-fcm

3.0.0-alpha.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q30777F
  • License Artistic-2.0

Loopback Push Notification

Package Exports

  • loopback-component-push-fcm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (loopback-component-push-fcm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

LoopBack Push Notification Component

StrongLoop Labs

StrongLoop Labs projects provide early access to advanced or experimental functionality. In general, these projects may lack usability, completeness, documentation, and robustness, and may be outdated. However, StrongLoop supports these projects: Paying customers can open issues using the StrongLoop customer support system (Zendesk), and community users can report bugs on GitHub.

This module provides a set of LoopBack models to enable mobile device push notifications.

Please see the full documentation: Push notifications.

The loopback-component-push module supersedes loopback-push-notification. Please update your package.json accordingly.

Architecture

push-notification.png

Key Components

  • Device model and APIs to manage devices with applications and users
  • Application model to provide push settings for device types such as ios and android
  • Notification model to capture notification messages and persist scheduled notifications
  • Optional Job to take scheduled notification requests
  • Push connector that interact with device registration records and push providers such as APNS, GCM, and MPNS
  • Push model to provide high level APIs for device-independent push notifications

Samples

Node.js server

This module includes an example LoopBack server application.

To run it, use these commands:

$ cd example/server
$ npm install
$ bower install
$ node app

Open your browser to http://127.0.0.1:3010.

By default, the application uses an in-memory store for the application/installation data. To change to a MongoDB instance, set the MONGODB environment variable to the MongoDB URL. For example,

MONGODB=mongodb://localhost/demo node app

iOS client

The iOS example app uses the LoopBack iOS SDK to enable and handle push notifications.

Android client

The Android example app uses the LoopBack Android SDK to enable and handle push notifications.

References