How to test Push Notification is working in my application

前端 未结 10 2287
我在风中等你
我在风中等你 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条回答
  •  Happy的楠姐
    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.

提交回复
热议问题