Skip to content

Commit

Permalink
use new name from remote params
Browse files Browse the repository at this point in the history
  • Loading branch information
jinliu9508 committed Aug 26, 2024
1 parent 13c781c commit 42dced1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ internal class ParamsBackendService(
paramsUrl += "?player_id=$subscriptionId"
}

val response = _http.get(paramsUrl, CacheKeys.REMOTE_PARAMS)
val response = _http.get(paramsUrl, CacheKeys.REMOTE_PARAMS, "")

Check failure on line 34 in OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/backend/impl/ParamsBackendService.kt

View workflow job for this annotation

GitHub Actions / build

Too many arguments for public abstract suspend fun get(url: String, cacheKey: String? = ...): HttpResponse defined in com.onesignal.core.internal.http.IHttpClient

if (!response.isSuccess) {
throw BackendException(response.statusCode, response.payload, response.retryAfterSeconds)
Expand Down Expand Up @@ -60,7 +60,7 @@ internal class ParamsBackendService(
googleProjectNumber = responseJson.safeString("android_sender_id"),
enterprise = responseJson.safeBool("enterp"),
// TODO: New
useIdentityVerification = responseJson.safeBool("require_ident_auth"),
useIdentityVerification = responseJson.safeBool("jwt_required"),
notificationChannels = responseJson.optJSONArray("chnl_lst"),
firebaseAnalytics = responseJson.safeBool("fba"),
restoreTTLFilter = responseJson.safeBool("restore_ttl_filter"),
Expand Down

0 comments on commit 42dced1

Please sign in to comment.