openimsdk / open-im-sdk-reactnative

IM ReactNative
MIT License
38 stars 54 forks source link

[BUG] ios onRecvNewMessages fail #47

Open OrrinHatch opened 2 days ago

OrrinHatch commented 2 days ago

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

The message reception works fine on Android, but iOS is unable to receive messages.

Screenshots Link

No response

lgz5689 commented 1 day ago

Please update the sdk and server to the latest. If the problem still exists, please collect detailed logs so that we can better locate the problem.

OrrinHatch commented 1 day ago
SDK version "open-im-sdk-rn": "3.8.1-rc.1",
lgz5689 commented 1 day ago

onRecvNewMessages is not triggered when a message is received, but is it possible to query messages via other apis?

OrrinHatch commented 1 day ago

Android can receive new messages.

截屏2024-10-31 21 42 25
OrrinHatch commented 1 day ago

i don't understand object-c development, can not fix it please fix it

OrrinHatch commented 1 day ago

When I use onRecvNewMessage on IOS, I can successfully receive new messages

lgz5689 commented 13 hours ago

When I use onRecvNewMessage on IOS, I can successfully receive new messages

Thank you. According to your description, we should already know where the problem is and we will fix it as soon as possible

lgz5689 commented 13 hours ago

You can try using the content of this pr to confirm if the fix has been completed. However, it is expected that onRecvNewMessages will also be deprecated in the next version, please note