Open buiphukhuyen opened 1 day ago
I want to ask more if I want to use FCM to send the notice, I activate FCM on Openim Server. If using flutter, how to send the FCM token from SDK Flutter to Openim?
我想问一下如果我想使用 FCM 发送通知,我在 Openim Server 上激活了 FCM。如果使用 Flutter,如何将 FCM 令牌从 SDK Flutter 发送到 Openim?
I am using OpenIM SDK in my Flutter project and am facing issues when the app is closed or moved to the background. The SDK is not able to maintain its connection and does not receive new messages through the listeners (onRecvNewMessage, onRecvOfflineNewMessage, etc.) when the app is not actively running in the foreground. Only when the app is reopened does the SDK start processing the events.
The SDK should ideally run in the background to process incoming messages and trigger notifications.
Steps to Reproduce:
Expected Behavior: The SDK should continue to run in the background, allowing it to receive messages and trigger notifications even when the app is in the background or closed.
Environment:
Related Code Snippet: ----class OpenIMService extends GetxService----
------main.dart------
Questions: Is there any additional configuration or background service setup required to keep OpenIM SDK running when the app is in the background or closed?
Thanks!