In my application I am implementing the Push Notification Service.
I have a Content Provider server, which contains some products in it.
I have generated the SSL Cli
If you want to support both Certificate and Token based authentication with APNS, then you can try Push Notifications
What about curl
:
curl -d '{"aps":{"alert":"This is a test notification"}}' --cert YourCertificate.pem:YourPassword -H "apns-topic: com.example.yourapp" --http2 https://api.development.push.apple.com/3/device/YourDeviceToken
First you need curl
with http2
support.
And you need to convert your push certificate to pem
format using openssl
.
Try this online application, through which you could paste in your device token and provide the certificate, and so send push notification to any devices and lets you customize the data as well. http://pushmebaby.herokuapp.com
If you google you will see a number of websites that do this. I usually use https://www.apnstester.com and https://www.pushty.com