MrBoog / Test-ANPS-with-p8-file

Demonstrate How to send push with Token-Based Connection(.p8 file)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS APNs with a Node.js backend

The open source service: https://www.npmjs.com/package/apn

First we need to initiate a new Node.js project and apn package for npm.

npm install apn --save  

Then copy the .p8 file to your current folder, rename it as apns.p8.

Modify the app.js file, fill in apnProvider & deviceToken & notification etc.

After this, just use node app.js to run this script.

About

Demonstrate How to send push with Token-Based Connection(.p8 file)


Languages

Language:JavaScript 100.0%