Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aggarwalankush/push-notification-server
Server code to send Push Notification to iOS or Android device
https://github.com/aggarwalankush/push-notification-server
android apns fcm ios java push-notification
Last synced: 16 days ago
JSON representation
Server code to send Push Notification to iOS or Android device
- Host: GitHub
- URL: https://github.com/aggarwalankush/push-notification-server
- Owner: aggarwalankush
- License: mit
- Created: 2016-07-21T20:16:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-08-23T07:41:25.000Z (about 1 year ago)
- Last Synced: 2024-10-14T23:05:43.360Z (29 days ago)
- Topics: android, apns, fcm, ios, java, push-notification
- Language: Java
- Size: 1.12 MB
- Stars: 80
- Watchers: 11
- Forks: 30
- Open Issues: 2
-
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/aggarwalankush/ionic2-push-base) :+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/aggarwalankush/ionic2-push-base) :+1:
* ```IOSPush.java``` - run this file to push notification to iOS device```
$ javac -cp apns.jar:. IOSPush.java
$ java -cp apns.jar:. IOSPush
```