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