-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
紧急!setAlias和deleteAlias在安卓平台闪退 #38
Comments
建议先使用stable版本的flutter sdk 我只是一个三方贡献者, 你还是需要找官方的人,看看他们能不能快速解决. 如果明天还需要解决的话,我可以提交一个PR看官方人员会不会接收吧 |
@fcloud89 然而没人响应这个pr 修改: 以前的ref是错的, 请用以下的引用方式
|
我的办法是在jpush插件配置文件AndroidManifest.xml内的receiver里添加android:process="包名" |
安装这个插件 在flutter1.7.8+hotfix.3上依旧会崩溃 |
把callback.success(res);、callback.error(Integer.toString(msg.arg2), "", "");切换回主线程;
// callback.success(res); // JPushPlugin.instance.callbackMap.remove(sequence);
// callback.success(res); // JPushPlugin.instance.callbackMap.remove(sequence);
// callback.success(res);
// callback.error(Integer.toString(jPushMessage.getErrorCode()), "", ""); // JPushPlugin.instance.callbackMap.remove(sequence); } |
之前的ref 留错了 尴尬.. 用这个ref试试: dependencies:
jpush_flutter:
git:
url: https://github.com/CaiJingLong/jpush-flutter-plugin.git
ref: 4d847f9b2150dc4fd1f8a7620d414d60f464fab7 |
真好用 |
确定可以用,感谢🙏 |
感谢一波大佬,实时可用 |
最新版本已修复此类问题 |
安卓平台
JPush().setAlias
JPush().deleteAlias
在flutter 1.6.3 版本上报错
原因是java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: MessageReceiver
换最新的jcore2.0.1和jpush3.3.1,不再出现问题,但JMessageClient.getConversationList返回null
@huangminlinux @CaiJingLong @shikk @javenfang
The text was updated successfully, but these errors were encountered: