Skip to content

Commit 09eaa70

Browse files
authored
Pass User Properties to RC Fetch Request as a JSONObject (#986)
* Explicitly create JSONObject from user properties map * Run Bandwagoner Test App and tests on API level 16 * Fix with API 19 and below #973
1 parent 998e414 commit 09eaa70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firebase-config/bandwagoner/bandwagoner.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ android {
5353

5454
firebaseTestLab {
5555
device 'model=walleye,version=26,locale=en,orientation=portrait'
56-
56+
device 'model=walleye,version=16,locale=en,orientation=portrait'
5757
}
5858

5959
dependencies {

firebase-config/src/main/java/com/google/firebase/remoteconfig/internal/ConfigFetchHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ private JSONObject createFetchRequestBody(
310310
requestBodyMap.put(PACKAGE_NAME, context.getPackageName());
311311
requestBodyMap.put(SDK_VERSION, BuildConfig.VERSION_NAME);
312312

313-
requestBodyMap.put(ANALYTICS_USER_PROPERTIES, analyticsUserProperties);
313+
requestBodyMap.put(ANALYTICS_USER_PROPERTIES, new JSONObject(analyticsUserProperties));
314314

315315
return new JSONObject(requestBodyMap);
316316
}

0 commit comments

Comments
 (0)