-
I have a Scarlet instance inside a Android LifecycleService which has been started in foreground, in order for the service to not be destroyed when the application is not in foreground anymore. I've s…
-
If I do not specify `lifecycle` for `Scarlet.Configuration`, `SocketIoClient` is not connecting.
My dagger module which creates Scarlet
```
@Module
class MykModule {
@Singleton
@Prov…
-
I'm using:
`AndroidLifecycle.ofLifecycleOwnerForeground(application, activity, THROTTLE_TIMEOUT)`
as my lifecycle and passing this into scarlet via `::lifecycle()` builder method. However, when my …
-
### Description
`OnBackPressed `is deprecated and should be migrated to `OnBackPressedCallback`.
If `android:enableOnBackInvokedCallback` is enabled
- `OnBackPressed` isn't invoked(Android 13 and…
-
Creating a second Service like this makes the socket reconnect, thereby opening multiple connections
@Provides
@Singleton
fun provideAuthService(scarlet: Scarlet): Service1 {
…
-
### Description
Whenever the application I'm developing (Android) is in background (app is unfocused or the screen is dimmed), the vibration does not work.
Here is the code I'm using:
```cs
Vi…
-
I'm dealing with a problem that my server could be unstable at the time and he could silently reboot itself. The issue is that my socket is not retrying connection after the server closes it. Is that …
-
我用ReactNative怎么办,人家要用ReactActivity。而且有的组件只是个View而已,获取activity麻烦,只有context
-
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.
-
By using Koin i create my networkModule like below
```
val networkModule = module {
......
single {
return@single AndroidLifecycle.ofApplicationForeground(androidApplication())
…