https://github.com/big-silver/ionic-pushnotification-server
Server code to send Push Notification to iOS or Android device
https://github.com/big-silver/ionic-pushnotification-server
android apns fcm ios java push-notifications
Last synced: 4 months ago
JSON representation
Server code to send Push Notification to iOS or Android device
- Host: GitHub
- URL: https://github.com/big-silver/ionic-pushnotification-server
- Owner: Big-Silver
- License: mit
- Created: 2017-08-16T22:47:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-02T03:27:38.000Z (about 8 years ago)
- Last Synced: 2025-04-10T03:32:26.057Z (about 1 year ago)
- Topics: android, apns, fcm, ios, java, push-notifications
- Language: Java
- Size: 1.02 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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](https://medium.com/@ankushaggarwal/gcm-setup-for-android-push-notifications-656cfdd8adbd) :tada:
* ```DEVICE_TOKEN``` - if you don't have device token, in case of Ionic 2, use [this tutorial](https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59) or [this repo](https://github.com/Big-Silver/Ionic-PushNotification) :+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](https://medium.com/@ankushaggarwal/generate-apns-certificate-for-ios-push-notifications-85e4a917d522) :tada:
* ```DEVICE_TOKEN``` - if you don't have device token, in case of Ionic 2, use [this tutorial](https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59) or [this repo](https://github.com/Big-Silver/Ionic-PushNotification) :+1:
* ```IOSPush.java``` - run this file to push notification to iOS device
```
$ javac -cp apns.jar:. IOSPush.java
$ java -cp apns.jar:. IOSPush
```