GithubHelp home page GithubHelp logo

toto / parse-push-cli Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 124 KB

Mini NodeJS app to send pushes to parse-server from the CLI

License: MIT License

JavaScript 100.00%
parse-server push-notifications cli parse-platform

parse-push-cli's Introduction

parse-push-cli

Sends out pushes to all iOS (or tvOS) devices registered in Parse. Currently only targets to iOS or tvOS.

Configuration

Create a .env file in the repo or set environment variables. Set the following variables:

  • PARSE_APP_ID: App id used for this parse app some-fancy-app
  • PARSE_SERVER_URL: Parse server URL e.g. https://example.com/parse
  • PARSE_KEY: The master key (not the JS key) configured for the server

Usage

After config supply CLI options. Either --silent or --title is required

  • -l/--language: Target language starting the the argument. Eg. -l de targets German devices
  • -s/--silent: Send silent push (Note: Can be combined with -t etc. to send low priority push that still wakes the app in the background)
  • -a/--alert: Body/alert
  • -t/--title: Optional title to set
  • --sound: Sends the default alert sound
  • --url: Sets a key url into the payload with the given value. Used for e.g. deep-linking. Note that using this requires handling this in the iOS/tvOS app.
  • --badge: Needs to be a number, sets the badge
  • -p/--platform: Valid values are ios or tvos. Defaults to ios. Note that tvOS only processes --silent or --badge pushes.
  • --timesensetive: If set send push with time-sensetive interruption level (required entitlment in the app)

parse-push-cli's People

Contributors

toto avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.