openimsdk / open-im-sdk-android

IM Android
https://openim.io
MIT License
225 stars 160 forks source link

[BUG] The initSdk method in OpenIMClient does not call registerActivityLifecycleCallbacks, which causes the logic related to OfflineMessage to fail when the app is in the background. Additionally, OpenIMClient.setAppBackgroundStatus is not exposed externally, and this needs to be fixed #57

Open xiaoyvyv opened 3 months ago

xiaoyvyv commented 3 months ago

OpenIM Server Version

3.5.1

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

[BUG] In OpenIMClient, the initSdk method fails to call registerActivityLifecycleCallbacks, resulting in the malfunction of logic related to OfflineMessage when the application is in the background. Furthermore, OpenIMClient.setAppBackgroundStatus is not exposed externally, which needs to be addressed

Screenshots Link

No response