This is just a simple node script to send an APNS notification for the iOS Location Push Service Extension.
yarn install
Edit the file config/apns.json.sample and save as config/apns.json
- The
token.keycomes from your Apple Developer ConsoleAPNS_KEY.p8, the one created with [x] Apple Push Notifications service (APNs). enabled - The
token.keyIdcan be obtained by selecting theAPNS KEYabove in Apple Developer Console.
{
"token": {
"key": "/path/to/your/apns-key.p8",
"keyId": "<10-character KEY ID>",
"teamId": "<Apple Developer Team ID>"
},
"bundleIdentifier": "com.transistorsoft.locationPushServiceExtension"
}$ node send.js <apns_location_push_token>