从服务器获取推送属性的回调里面显示not login
已经获取了远程推送的token,也执行了绑定,控制台那边也上传了对应的p12证书
// 远程通知注册成功回调
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let token = deviceToken.map { String(format: ".2hhx", $0) }.joined()
dlog("push---Device Token: \(token)")
DispatchQueue.global().async {
HDClient.shared().bindDeviceToken(deviceToken)
}
}
client.pushManager.getPushNotificationOptionsFromServer { aOptions, aError in
#warning ("TODO:显示未登录")
print("==========aErrorcode=\(aError.code)==\(String(describing: aError.hdyy_modelToJSONString()))")
print("===========displayStyle=\(aOptions.displayStyle)==\(String(describing: aOptions.displayName))")
}
// 远程通知注册成功回调
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let token = deviceToken.map { String(format: ".2hhx", $0) }.joined()
dlog("push---Device Token: \(token)")
DispatchQueue.global().async {
HDClient.shared().bindDeviceToken(deviceToken)
}
}
client.pushManager.getPushNotificationOptionsFromServer { aOptions, aError in
#warning ("TODO:显示未登录")
print("==========aErrorcode=\(aError.code)==\(String(describing: aError.hdyy_modelToJSONString()))")
print("===========displayStyle=\(aOptions.displayStyle)==\(String(describing: aOptions.displayName))")
}
没有找到相关结果
已邀请:
0 个回复