openimsdk / open-im-flutter-demo

Demo developed based on flutter open IM SDK.
https://openim.io
Apache License 2.0
310 stars 209 forks source link

Application does not receive offline messages through the long connection when in the background, how to handle it? #79

Closed shenshenwlb closed 1 year ago

shenshenwlb commented 1 year ago

应用在后台,socket的数据接收方法收不到消息 void recvNewMessage(Message msg) { initLogic.showNotification(msg); onRecvNewMessage?.call(msg); }

std-s commented 1 year ago

应用在后台,socket的数据接收方法收不到消息 void recvNewMessage(Message msg) { initLogic.showNotification(msg); onRecvNewMessage?.call(msg); }

离线消息使用PUSH方案。

pokid commented 3 months ago

应用在后台,socket的数据接收方法收不到消息 void recvNewMessage(Message msg) { initLogic.showNotification(msg); onRecvNewMessage?.call(msg); }

离线消息使用PUSH方案。

i got this problem too..i think its not offline,its just run in backound, and its not killed by system. so why onRecvOfflineNewMessage cant receive message.