Value | Behaviour | |
---|---|---|
autoEstablishSocketConnection | true | Connection is maintained in background for 30 seconds and after that it is killed. |
autoEstablishSocketConnection | false | 1. If CometChat.connect() is called and app goes to background the connection is maintained for 30 seconds and after that connection is terminated. 2. If CometChat.disconnect() is called and app goes to background the connection not maintained. |
CometChat.configureServices
method in application class or scene delegate class as shown below.
CometChat.BackgroundTaskEnabled()
method. It will return true
if service is running else it will return false
.