Skip to content
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

获取别名,程序崩溃 #22

Open
liuweichn opened this issue Feb 25, 2020 · 0 comments
Open

获取别名,程序崩溃 #22

liuweichn opened this issue Feb 25, 2020 · 0 comments

Comments

@liuweichn
Copy link

/// 获取别名
FlutterJPush.getAlias().then((JPushResult result) {
if (result.isOk) {
print('alias: ${result.result}');
}
});

报错:E/AndroidRuntime: FATAL EXCEPTION: MessageReceiver
Process: com.gxanxun.smart_maintenance, PID: 21978
java.lang.RuntimeException: Methods marked with @UiThread must be executed on the main thread. Current thread: MessageReceiver
at io.flutter.embedding.engine.FlutterJNI.ensureRunningOnMainThread(FlutterJNI.java:807)
at io.flutter.embedding.engine.FlutterJNI.invokePlatformMessageResponseCallback(FlutterJNI.java:740)
at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:156)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:225)
at com.jzoom.flutterjpush.FlutterJPushPlugin$MyJPushMessageReceiver.onAliasOperatorResult(FlutterJPushPlugin.java:766)
at cn.jpush.android.a.b.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant