1.分享的网页使用微信打开第三方app,app处于冷启动状态。
2.override func application(_ application: UIApplication, open: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
if (WXApi.handleOpen(open, delegate: self)) {//冷启动微信拉起第三方app 返回false
return true;
}
return super.application(application, open: open, options: options);
}
在handleOpenUrl之前确保调用WXApi.registerApp