swift3 友盟推送獲取deviceTocken 列印為32 bytes

z小志發表於2018-01-23

解決辦法:

let tokenData = NSData(data: deviceToken)
let deviceToken = tokenData.description.replacingOccurrences(of:"<", with:"").replacingOccurrences(of:">", with:"").replacingOccurrences(of:" ", with:"")
複製程式碼

相關文章