swift3 友盟Device Token获取

    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)")
    }

我去, 其实我已经集成成功了, 只是没测试出来而已
坑了我一天, 以为不会弄, 没弄成功呢.
其实已经成功了啊a a a a

by:良辰乐
2017-05-23 18:08:20

你可能感兴趣的:(swift3 友盟Device Token获取)