Closed furkanKotic closed 1 year ago
You need to close client when app goes to the background. See https://github.com/centrifugal/centrifuge-dart#usage-in-background
I should use disconnect when it goes to the background and use the connect function again when it goes to the foreground. Is it true?
Should I cancel all Stream when it goes to the background and recreate them when it goes to the foreground?
_imClient.connected.listen((event) {
**my code
});
I should use disconnect when it goes to the background and use the connect function again when it goes to the foreground. Is it true?
Yes
Should I cancel all Stream when it goes to the background and recreate them when it goes to the foreground?
I think you don't need to do this.
Thank you for your help.
The Firebase log record, which is usually seen on Oppo devices, is as follows:
I think it is seen in the application that is pending in the background.