Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Latest commit

 

History

History
64 lines (38 loc) · 1.71 KB

README.md

File metadata and controls

64 lines (38 loc) · 1.71 KB

EchoNotification

iOS push notification example

Rich Notification screenshot

Apple push certificate

Create a push certificate on the Apple developer site.

Create Push Cert screenshot 1 Create Push Cert screenshot 2

Server certificate

Create a p12 server certificate with keychain.

Request cert screenshot

Export cert screenshot 1

Export cert screenshot 2

Export cert screenshot 3

AWS Simple Notification Service

Upload credentials to AWS Simple Notification Service.

Upload credentials to AWS screenshot

Create an Application and register your device as an endpoint.

Application AWS screenshot

Endpoint AWS screenshot

Sample push payload

{
  "APNS_SANDBOX": "{\"aps\":{\"alert\":\"Hello World\"}}"
}

Sample push payload with image

{
    "APNS_SANDBOX": "{\"aps\":{\"alert\":\"Hello World\",\”mutable-content\":1},\"assetURL\":\"https://upload.wikimedia.org/wikipedia/commons/0/06/Pierre_de_Coubertin_Anefo.jpg\"}"
}

Testing

Test media URLs

Asset test screenshot

Successful rich notification

Success screenshot

Failure notification

Failure screenshot