下载了离线SDK----iOSSDK@2.0.1.64837_20190614,使用其中的demo,替换web资源,修改参数,成功可以启动,也正常显示页面。
看到此时默认为unipush,可以获取clientId,要转为小米推送,参照文档。
添加下列Linker Flags:-lXiaomiPush,-lMiPushSDK
添加下列framework:libresolv.dylib, libxml2.dylib,libz.dylib,SystemConfiguration.framework,MobileCoreServices.framework,CFNetwork.framework,CoreTelephony.framework,
此时启动页面仍然正常显示,但是获取的ClientId为空,控制台报错,
Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarFrame]
PID: 11492, TID: 1995552, Thread name: com.taobao.weex.bridge, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
2019-07-18 16:02:54.512975+0800 HBuilder[11492:1995552] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarFrame]
PID: 11492, TID: 1995552, Thread name: com.taobao.weex.bridge, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Main Thread Checker: UI API called on a background thread: -[UIApplication statusBarOrientation]
PID: 11492, TID: 1995522, Thread name: (none), Queue name: io.dcloud.background (QOS: UNSPECIFIED), QoS: 0
Main Thread Checker: UI API called on a background thread: -[UIApplication setNetworkActivityIndicatorVisible:]
PID: 11492, TID: 1995547, Thread name: (none), Queue name: com.xiaomi.mipush, QoS: 0
。。。。
请问这是怎么回事?
非常感谢!
1 个回复
z***@aliyun.com - 80后IT男..
您好,请问 iOSSDK@2.0.1.64837_20190614 您还有吗?我在找这个版本的SDK,若有麻烦回复我。感谢!