push-notification-server
push-notification-server copied to clipboard
Server code to send Push Notification to iOS or Android device
Push Notification Server
This can be used to send Push Notification to iOS or Android Device.
Android Push Notification
-
SERVER_KEY- if you don't have SERVER_KEY, generate using this tutorial :tada: -
DEVICE_TOKEN- if you don't have device token, in case of Ionic 2, use this tutorial or this repo :+1: -
AndroidPush.java- run this file to push notification to Android device$ javac AndroidPush.java $ java AndroidPush
iOS Push Notification
-
APNS certificate(.p12)- if you don't have .p12 certificate, generate using this tutorial :tada: -
DEVICE_TOKEN- if you don't have device token, in case of Ionic 2, use this tutorial or this repo :+1: -
IOSPush.java- run this file to push notification to iOS device$ javac -cp apns.jar:. IOSPush.java $ java -cp apns.jar:. IOSPush