jpush-flutter-plugin icon indicating copy to clipboard operation
jpush-flutter-plugin copied to clipboard

android flutter 层onReceiveMessage收不到,但是在native层是接到自定义消息了的

Open caizhimin228 opened this issue 3 years ago • 4 comments

image 但是不会传到flutter 这边来 请问是为什么

caizhimin228 avatar Dec 10 '21 15:12 caizhimin228

遇到同样的问题 参考这个pr https://github.com/jpush/jpush-flutter-plugin/pull/282

里面有提到 基于static的持有JPushPlugin instance,并在每次attach之后被新的plugin实例覆盖,这样是不合理的,存在潜在bug

Jayshanx avatar Feb 28 '22 07:02 Jayshanx

image 但是不会传到flutter 这边来 请问是为什么

同样的问题,一样的日志

MaimiHu avatar Sep 08 '22 01:09 MaimiHu

可以尝试检查代码中调用前台服务 flutter_foreground_task等插件 会导致此类问题出现

Lonely-shang avatar Mar 19 '24 02:03 Lonely-shang