-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote Config fetch fails below API 19 (Kitkat) #973
Comments
I found a few problems with this issue:
|
Can someone please add needs-attention tag to this. This is happening live on the 19.x version and completely fails below Kitkat. |
Internally tracked at b/144365875. |
* Explicitly create JSONObject from user properties map * Run Bandwagoner Test App and tests on API level 16 * Fix with API 19 and below #973
Hey @Protino, submitted a fix that should go out sometime soon. Please follow https://firebase.google.com/support/release-notes/android to find out when the fix is in production. In the meantime, you could build the SDK from master and include that in your app if a fix is required immediately. |
@clp93 Thanks. Not immediately required as of now, will continue to use 18.0.0. Will close the issue once a fix is available in production. |
* Explicitly create JSONObject from user properties map * Run Bandwagoner Test App and tests on API level 16 * Fix with API 19 and below #973
Hey @Protino, RC SDK Version 19.0.4 should have the fix you're looking for. We've verified that the regression was not observed on our test devices running API 18 with the new SDK, and as such, I'll mark the issue as closed. Thanks for the report! |
Describe your environment
Describe the problem
Firebase remote config fails to fetch config values on API level below 19. Exception thrown is
FirebaseRemoteConfigServerException: Bad Request
.Steps to reproduce:
Run the official sample code - https://github.com/firebase/quickstart-android/tree/master/config on any API 17 emulator.
Click on 'Run the java version ...'
Fetch fails and the exception thrown is
com.google.firebase.remoteconfig.FirebaseRemoteConfigServerException
with message -Bad request
.Complete trace -
Upon further inspection, looks like the
analyticsUserProperties
user property is wrongly formatted in the request body.on API 17 -
Response -
on API 21 -
If JSONObject().toString() is done on a nested map objects it produces
"{}"
instead of just{}
, on API(17). If someone could explain this that would be doubly helpful, thanks.Between, on remote config version 18.0.0 it works fine.
The text was updated successfully, but these errors were encountered: