func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let device = NSData(data: deviceToken)
let deviceId = device.description.replacingOccurrences(of:"<", with:"").replacingOccurrences(of:">", with:"").replacingOccurrences(of:" ", with:"")
print("我的deviceToken:\(deviceId)")
}
我去, 其實(shí)我已經(jīng)集成成功了, 只是沒測(cè)試出來而已
坑了我一天, 以為不會(huì)弄, 沒弄成功呢.
其實(shí)已經(jīng)成功了啊a a a a
by:良辰樂
2017-05-23 18:08:20