https://kotlinlang.org logo
#reaktive
Title
# reaktive
d

Dmitry Motyl

07/28/2022, 12:11 PM
Hi everyone! I have subscription with
debounce
It works well on iOS, but on Android it doesn’t fire if app is in background near 15 min. There is some specific I should know ?
a

Arkadii Ivanov

07/28/2022, 12:18 PM
Hello. That's probably due to Android background restrictions. You can check official docs - https://developer.android.com/training/monitoring-device-state/doze-standby https://developer.android.com/about/versions/oreo/background
d

Dmitry Motyl

07/28/2022, 12:20 PM
But what is happens with subscription in this case ? I expect when app comes to active state
debounce
should fire a next.
a

Arkadii Ivanov

07/28/2022, 12:22 PM
That's totally up to your code. The app's process can be killed when the app is in the background. When it's activated again, you have to resubscribe. If you want to run continuously in the background, then you have to use a background service.
d

Dmitry Motyl

07/28/2022, 12:39 PM
thank you
4 Views