Payload Encryption question

I saw a tweet about payload encryption in iOS 10's new push notification framework:

https://twitter.com/paulmillr/status/744854801280827393


I'm just trying to gather if I'm understanding it correctly, b/c I can't seem to find anything definitive about the process.


Are you supposed to encrypt a payload message on your Provider server, send it to the APN, then utilize the UNNotificationServiceExtension class to intercept the payload on the client app, decrypt the message and display to the user. Is that the gist of it?

If so, what techniques/technology/suggestions would anyone recommend for the encryption on the Provider server and the decryption in the app?


Or if I've totally missed the mark, maybe someone would care to enlighten me. 🙂

Payload Encryption question
 
 
Q