Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to generate a hex string for push notifications
import Foundation
extension Data {
var hexString: String {
return self.map({ return String(format: "%02hhx", $0) }).joined()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment