in mpush_ios_swift_demo/mpush_ios_swift_demo/AppDelegate.swift [79:89]
func initCloudPushSDK() {
// 打开Log,线上建议关闭
CloudPushSDK.turnOnDebug()
CloudPushSDK.asyncInit(testAppKey, appSecret: testAppSecret) { (res) in
if (res!.success) {
print("Push SDK init success, deviceId: \(CloudPushSDK.getDeviceId()!)")
} else {
print("Push SDK init failed, error: \(res!.error!).")
}
}
}