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

[BUG]When the UniApp version is packaged into an Android package, if the application runs in the background for a period of time or the screen is turned off for a while, it will be unable to send or receive messages.

Open zzcraft1 opened this issue 1 year ago • 1 comments

OpenIM Server Version

"openim-uniapp-polyfill": "^1.4.3",

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

I used the uniapp version to package the app into an Android package. When I closed the application or ran the app in the background for a period of time, and then returned to the application, I was unable to successfully send messages. However, when querying the status of this user in the background, the user's status was still "online" on Android, and this user also couldn't receive messages. I needed to exit the application and re-enter it to make it work normally.

Image

Screenshots Link

No response

zzcraft1 avatar Aug 04 '25 08:08 zzcraft1

Cloud you reproduce the above IM scenario? and then use the OpenIM SDK’s log upload API: https://docs.openim.io/sdks/api/third/uploadLogs(Initialize the SDK with log level set to 5.)

Once the logs are uploaded successfully, you can download them from the OpenIM admin console → IM Management → Log Management.

Please provide the logs to our team for further analysis.

FGadvancer avatar Aug 06 '25 02:08 FGadvancer