npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

loopback-push-notification

v1.2.3

Published

Loopback Push Notification

Downloads

8

Readme

LoopBack Push Notification Component

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

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

Please see the full documentation: Creating push notifications.

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

An example LoopBack server application is provided. To run

To run it:

cd example/server
node app

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

By default, the app 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 LoopBack the LoopBack iOS SDK to enable and handle push notifications.

Android client

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

References

  • https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
  • http://developer.android.com/google/gcm/index.html
  • http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202945(v=vs.105).aspx
  • https://github.com/argon/node-apn
  • https://github.com/logicalparadox/apnagent-ios
  • https://blog.engineyard.com/2013/developing-ios-push-notifications-nodejs