Dag Ågren c2fc3f696d Include better iOS example code. | il y a 6 ans | |
---|---|---|
.. | ||
BridgingHeader.h | il y a 6 ans | |
Decode85.swift | il y a 6 ans | |
DecryptNotification.swift | il y a 6 ans | |
PushNotificationDataObjects.swift | il y a 6 ans | |
PushNotificationReceiver.swift | il y a 6 ans | |
README.md | il y a 6 ans | |
SwiftGCM.swift | il y a 6 ans |
This code is the client-side decryption code from the Toot! iOS client, which uses the toot-relay web push proxy. It sets up keys and decrypts incoming notifications relayed over APNS from the web push proxy.
The code should compile stand-alone, but may contain some Mastodon-specific parts still. Use it as the basis of your own implementation!
This code includes a slightly edited copy of Luke Park's SwiftGCM code to handle aes-gcm decryption.