How to get the device token from new xCode 8, Swift 3 in iOS 10?
Here is the code to register notification:
It could work:
let chars = UnsafePointer((deviceToken as NSData).bytes.assumingMemoryBound(to:CChar.self))
Thanks!