
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
rack-push-notification
Advanced tools
A Rack-mountable webservice for managing push notifications
Rack::PushNotification
is Rack middleware that
generates API endpoints that can be consumed by iOS apps
to register and unregister for push notifications.
Example Record
Field | Value |
---|---|
token | "ce8be627 2e43e855 16033e24 b4c28922 0eeda487 9c477160 b2545e95 b68b5969" |
alias | [email protected] |
badge | 0 |
locale | en_US |
language | en |
timezone | America/Los_Angeles |
ip_address | 0.0.0.0 |
lat | 37.7716 |
lng | -122.4137 |
tags | ["iPhone OS 6.0", "v1.0", "iPhone"] |
token
,
which uniquely identifies the app installation on a particular device.alias
,
which can be a domain-specific piece of identifying information,
such as a username or e-mail address.badge
count keeps track of the badge count to show on the app icon.locale
& language
can be used to
localize outgoing communications to that particular user.timezone
information gives you the ability to
schedule messages for an exact time of day and to
ensure maximum impact (and minimum annoyance).ip_address
--- along with lat
and lng
---
lets you to specifically target users according to their geographic location.Important Use
Rack::PushNotification
in conjunction with some kind of authentication, so that the administration endpoints aren't publicly accessible.
Rack::PushNotification can be run as Rack middleware or as a single web application.
All that's required is a connection to a Postgres database.
Define this with the environment variable DATABASE_URL
.
For rails, use the
rails-database-url
gem to define this from thedatabase.yml
.
An example application can be found in the /example
directory of this repository.
require 'bundler'
Bundler.require
run Rack::PushNotification
Rack::PushNotification
can be deployed to Heroku with the following commands:
$ heroku create
$ git push heroku master
Rack::PushNotification is available under the MIT license. See the LICENSE file for more info.
FAQs
Unknown package
We found that rack-push-notification demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.