Scarlet
Scarlet copied to clipboard
First start websocket
At the first launch of the application - the socket connection does not start working until you exit the application and enter again. The demo in the repository works the same way.
I'm also having this issue.
Noticed the same problem. 0.1.10 doesn't have this issue.
Problem isn't occurring on every device. I've got Google Pixel 5 with Android 11 and everything works fine. But on some devices (and on emulators) this issue happens every time. It has something to do with lifecycle handling - hiding the app to the background and coming back initializes the websockets.
Any update on this issue ?
@aaronweihe any updates? please..
Figured it out, If you are using fragments then simply use .lifecycle(AndroidLifecycle.ofLifecycleOwnerForeground(app, owner))
in Builder
where owner = viewLifecycleOwner