The SDK does not detect a foreground service as running in the foreground
Describe the bug When attempting to use the SDK from a service that is running in the foreground, it uses the "Background Polling" connection mode
To reproduce
- Create an app with a foreground service
- Make a single call to identify
- Wait as long as you want to let it sync (as long as it is less than the polling interval)
- Attempt to evaluate a flag in the service
- See that the flag is returned with the default result with reason FLAG_NOT_FOUND
Expected behavior When running in a foreground service the SDK should use the real-time streaming connection mode.
SDK version 3.0.0
OS/platform Android 10
Hi @StillLynnTheCloset,
Thanks for reporting this issue. We've added this to our internal backlog to investigate.
Thanks, @gwhelanLD
Was filed internally as 112247.
This issue has been tracked internally in our back log and so we are closing this issue here on Github. Thank you for your report!