我已经解决这个问题 一 必须有 WXEntryActivity 这个界面 文件目录必须是 包名+wxapi.WXEntryActivity: <activity android:name=".wxapi.WXEntryActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="true" android:taskAffinity="填写你的包名" android:launchMode="singleTask"> </activity> 二:WXEntryActivity界面实现 IWXAPIEventHandler 接口,微信发送的请求将回调到 onReq 方法,发送到微信请求的响应结果将回调到 onResp 方法 三:初始化IWXAPI api.handleIntent(getIntent(), this); 四:在onReq()中做跳转 @Override public void onReq(BaseReq arg0) { Log.i("ansen", "WXEntryActivity onReq:" + arg0); startActivity(new Intent(WXEntryActivity.this, SplashActivity.class)); finish(); } 具体看官方文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/Android.html
安卓平台,微信开放标签<wx-open-launch-app>无法唤起安卓APP?各种关联配置都配置好了,ios 能唤起,安卓无法唤起,但是安卓可以接收到微信的回调 [图片] 手机型号oppo reno 安卓版本 Android10 微信号Wxid_o1acw28q082922 时间 2020.10.16 15:22 已从手机端上传错误日志,测试链接https://dev-share.xn--vuq861by66a.com/pages/ShopActivity/couponList
2020-12-17我已经解决这个问题 一 必须有 WXEntryActivity 这个界面: <activity android:name=".wxapi.WXEntryActivity" android:label="@string/app_name" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:exported="true" android:taskAffinity="填写你的包名" android:launchMode="singleTask"> </activity> 二:WXEntryActivity界面实现 IWXAPIEventHandler 接口,微信发送的请求将回调到 onReq 方法,发送到微信请求的响应结果将回调到 onResp 方法 三:初始化IWXAPI api.handleIntent(getIntent(), this); 四:在onReq()中做跳转 @Override public void onReq(BaseReq arg0) { Log.i("ansen", "WXEntryActivity onReq:" + arg0); startActivity(new Intent(WXEntryActivity.this, SplashActivity.class)); finish(); } 具体看官方文档:https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/Android.html
wx-open-launch-weapp跳转小程序 安卓白屏?使用wx-open-launch-weapp去跳转小程序,ios没问题,但是安卓白屏,能打开小程序,但是小程序页面白屏
2020-12-17