open-im-server icon indicating copy to clipboard operation
open-im-server copied to clipboard

[Other]: OpenIM Server 3.8.3, follow the guides of https://docs.openim.io/zh-Hans/sdks/quickstart/miniProgram. OnRecvNewMessages callback has no response when new message arrived

Open dulci opened this issue 6 months ago • 1 comments

What would you like to share?

OpenIM Server 3.8.3 PC SDK: @openim/[email protected] Uni-app SDK: @openim/[email protected]

I have a PC program and a mini-program developed with uni-app. Both sides connect the server successfully. The websocket is stable. When I send a message to OpenIM Server. The callback of PC is called. But the Uni-app is not and I don't why. On the uni-app, when message arrived, I observe the console print a message like 'Trigger conversation ....'.

code: IMSDK.on(CbEvents.OnRecvNewMessages, handleNewMessages);

Method 'handleNewMessages ' is not be called.

Should I do something else?

Additional information

The message request body to the server: { "content": { "content": "12312" }, "contentType": 101, "isOnlineOnly": true, "isSendAll": false, "notOfflinePush": true, "recvIDs": [ "ea7c0374873b4244aa406915f39203fc" ], "sessionType": 1, "sendID": "SystemMessage" }

dulci avatar Jun 03 '25 03:06 dulci

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

OpenIM-Robot avatar Jun 03 '25 03:06 OpenIM-Robot