Giter Site home page Giter Site logo

xindizhiyin2014 / pushnotifications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onmyway133/pushnotifications

0.0 1.0 0.0 147.73 MB

๐Ÿ‰ A macOS, Linux, Windows app to test push notifications on iOS and Android

Home Page: https://onmyway133.github.io/

License: Other

JavaScript 95.45% HTML 1.77% Shell 2.78%

pushnotifications's Introduction

โ„™๐•ฆ๐•ค๐•™ โ„•๐• ๐•ฅ๐•š๐•—๐•š๐•”๐•’๐•ฅ๐•š๐• ๐•Ÿ๐•ค

โค๏ธ Support my work https://gum.co/rsjU โค๏ธ

Description

  • PushNotitication is an app used for testing push notifications on iOS and Android
  • Support macOS, Windows, Linux
  • Support using certificate and token for authentication with APNS
  • Auto save settings

How to install

How to use

iOS Provider Certificate

  • Read more Provider Certificates
  • Go to Member Center
  • Generate Apple Push Notification service SSL (Sandbox & Production), this is now used for both sandbox and production. Download as .cer file
  • Double click on .cer file to install into Keychain, then export it as .p12 file
  • In PushNotifications, select .p12 file, fill out passphase if needed, fill out bundle id, device token, message, select environment
  • message must be in json format, see Creating the Remote Notification Payload

iOS Authentication Token

  • Note your key id
  • In PushNotifications, select .p8 file, fill out key id, team id, bundle id, device token, message, select environment

Android Server Key

  • In PushNotifications, fill out server key, device token, message
  • message must be in json format

Manual building

In case of issues with running the app on your version of OS, it's possible to easily build it yourself.

Steps:

  1. Download or clone the repository
  2. Install node on your computer (https://nodejs.org/en/)
  3. Run npm install in the root of downloaded/cloned project
  4. Verify that the app can be launched with the command npm start (optional)
  5. Build the project to generate installable files (2 options):
  • For building with electron-builder you need to run npm run dist. Generated files end up in the folder dist in the root of your project.
  • For building with electron-packager you need to run npm run release. Generated files end up in the folder PushNotifications-darwin-x64 in the root of your project (macOS only).

To build for Windows & Linux you need to use electron-builder. Also, this way is preferable because it creates installable files.

electron-builder will generate:

  • For macOS: .zip, .dmg (if you build using macOS)
  • For Windows: .msi (if you build using Windows)
  • For Linux: .deb, .AppImage (if you build using Linux)

Keep in mind: you cannot build for Windows or Linux, if you are using macOS, or vise versa. It creates installable files only for your current OS.

Credit

Author

Khoa Pham, [email protected]

License

PushNotifications is available under the MIT license. See the LICENSE file for more info.

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.