How to test Push Notification is working in my application

前端 未结 10 2280
我在风中等你
我在风中等你 2020-12-23 11:42

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

相关标签:
10条回答
  • 2020-12-23 12:09

    If you want to support both Certificate and Token based authentication with APNS, then you can try Push Notifications

    0 讨论(0)
  • 2020-12-23 12:12

    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.

    0 讨论(0)
  • 2020-12-23 12:12

    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

    0 讨论(0)
  • 2020-12-23 12:16

    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

    0 讨论(0)
提交回复
热议问题