android-client-sdk icon indicating copy to clipboard operation
android-client-sdk copied to clipboard

The SDK does not detect a foreground service as running in the foreground

Open StillLynnTheCloset opened this issue 4 years ago • 3 comments

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

StillLynnTheCloset avatar Jun 21 '21 11:06 StillLynnTheCloset

Hi @StillLynnTheCloset,

Thanks for reporting this issue. We've added this to our internal backlog to investigate.

Thanks, @gwhelanLD

gwhelanLD avatar Jul 03 '21 00:07 gwhelanLD

Was filed internally as 112247.

louis-launchdarkly avatar Aug 25 '22 16:08 louis-launchdarkly

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!

tanderson-ld avatar May 09 '23 18:05 tanderson-ld