Open hannta opened 5 years ago
@hannta Thanks for bring this up! I will look into this issue
@hannta Just released 0.2.4-alpha1 to address this issue. Could you let me know if works?
@zhxnlai How bout if app is closed, it means websocket connection is also closed right? I am coming from the view of a push notification, where it is still delivered even if the app is closed.
If I do not specify
lifecycle
forScarlet.Configuration
,SocketIoClient
is not connecting.My dagger module which creates Scarlet
I try to keep my connection alive even when the app is in background, so I can not use lifecycle
AndroidLifecycle.ofApplicationForeground(app)
Im using Scarlet
0.2.1-alpha4