xu-li / cordova-plugin-wechat

A cordova plugin, a JS version of Wechat SDK
1.22k stars 509 forks source link

安卓微信登录授权后,返回APP的时候,没有停留在之前APP的页面,而是重新打开App导致code无法获取到 #447

Closed tongjh2 closed 5 years ago

tongjh2 commented 6 years ago

安卓微信登录授权后,返回APP的时候,没有停留在之前APP的页面,而是重新打开App导致code无法获取到,请问这个怎么解决

leedorian commented 6 years ago

同样的问题。

chaohui2 commented 6 years ago

我也出现了这个问题,感觉像是app因为某个错误崩溃了

chaohui2 commented 6 years ago

将 android-install.js 42行 https://github.com/xu-li/cordova-plugin-wechat/blob/ccf50820b5bc6c05f03ebdef0dc0a3801491896a/scripts/android-install.js#L42 改为下面代码 var targetDir = path.join(projectRoot, "platforms", "android", "app","src","main","java", packageName.replace(/\./g, path.sep), "wxapi");

https://github.com/xu-li/cordova-plugin-wechat/issues/407