Comments (6)
谢谢@xu-li。
我在android上测试的,换了个手机,微信登录时,发现唤起成功。由于还在开发过程中,没有做后续处理(比如保存access_token, refresh_token, openId等),再次点击微信登录(调用微信授权Wechat.auth)时,不会再次唤起微信。
我理解这应该是微信的功能,避免让用户重复授权,而应该程序把相关信息保存下来,后续直接使用。
感谢您及时的回复,我再学习一下。
from cordova-plugin-wechat.
@aqingsao 不好意思,暂时没时间测试这个BUG,可能周末会有空。
Android的版本的代码主要来自另外一个微信的插件, 你可以问问@vilic。
个人推断,既然已经成功过一次,那是否可以reset emulator,然后重新安装一下?主要排除其它外界因素的干扰,iOS的版本以前碰到的情况就是两个不同的APP里面URL Type设置成一样了,导致微信回调失败。
当然你的微信平台上的设置需要确保正确。
希望有所帮助。
from cordova-plugin-wechat.
我遇到了类似的问题,第一次能够唤起微信,之后就唤起不了
Permission Denial: receiving Intent { act=com.tencent.mm.plugin.openapi.Intent.ACTION_HANDLE_APP_REGISTER flg=0x10 (has extras) } to com.infinit.wostore.ui/com.unicom.push.shell.PushReceiver requires com.tencent.mm.permission.MM_MESSAGE due to sender cn.test.test (uid 10257)
E/PersonaManagerService( 3105): inState(): stateMachine is null !!
W/ActivityManager( 3105): mDVFSHelper.acquire()
W/PluginManager( 1590): THREAD WARNING: exec() call to Wechat.sendAuthRequest blocked the main thread for 65ms. Plugin should use CordovaInterface.getThreadPool().
E/MtaSDK ( 1590): Could not get permission of android.permission.READ_PHONE_STATE
W/MtaSDK ( 1590): [pool-2-thread-1(2655): null:-1] - can not get the permission of android.permission.WRITE_EXTERNAL_STORAGE
W/ActivityManager( 3105): getTasks: caller 10178 does not hold GET_TASKS; limiting output
E/ActivityManager( 3105): Invalid thumbnail dimensions: 576x576
W/ActivityManager( 3105): Duplicate finish request for ActivityRecord{3b459d20 u0 com.tencent.mm/.plugin.base.stub.WXEntryActivity t148 f}
W/InputMethodManagerService( 3105): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@38bad0aa attribute=null, token = android.os.BinderProxy@1665eaab
W/ActivityManager( 3105): getTasks: caller 10178 does not hold GET_TASKS; limiting output
E/MtaSDK ( 1590): [pool-5-thread-1(2659): null:-1] - Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}
E/MtaSDK ( 1590): [pool-5-thread-1(2659): null:-1] - Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}
from cordova-plugin-wechat.
ios 没问题,没想明白 server 404 invalid appkey 是怎么回事,config里 wechatappid 设置正确
from cordova-plugin-wechat.
我今天也遇到了Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}这个问题,但是只是在第一次调起微信授权登录时才出现这个信息,微信授权登录界面也可以出来,但是点击登录界面却直接返回了,也没有任何提示,求解?
from cordova-plugin-wechat.
@kinhunt @zhangjinhuang 想问下你们解决了吗?
from cordova-plugin-wechat.
Related Issues (20)
- android 11 分享失败 提示使用 FileProvider 方式分享 HOT 6
- sendPaymentRequest报class not found错误 HOT 1
- ionic3 分享跳转到微信 分享完成后点击回到应用没有反应 HOT 2
- 最新版3.0.0的ios分享失败,没有报错,打开不了微信, HOT 3
- 安卓11分享闪退
- Android通过查看日志发现wechat.auth有返回值,但是wechat.auth的success回调没有接收到 HOT 5
- The app is blocked from being shared. Unable to share on WeChat. HOT 1
- 支援AppID動態設定
- Capacitor can't get any response from Wechat.auth() HOT 4
- 安卓10 分享微信,提示"未安装微信" HOT 3
- capacitor 如何配置? HOT 5
- 微信的wxapi.WXEntryActivity及wxapi.WXPayEntryActivity的的建议
- 无法分享微信或者验证,反复跳转 HOT 2
- 安卓分享小程序闪退
- HarmonyOS 未授权存储权限,点击分享到微信。应用闪退 HOT 3
- 部分安卓机型调用分享小程序闪退
- Build fail on M1 Mac
- 安卓11系统以上分享文件异常 HOT 1
- BSF软件基金会(最新可用版本) HOT 2
- Capacitor 支付成功没有回调 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-wechat.