Skip to content

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

@StillLynnTheCloset

Description

@StillLynnTheCloset

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions