Skip to content

Commit

Permalink
Merge pull request #1911 from OneSignal/add_refresh_device_metadata_t…
Browse files Browse the repository at this point in the history
…o_create_user

Add refresh_device_metadata to create user so country / IP can be set
  • Loading branch information
nan-li authored and jinliu9508 committed Jan 31, 2024
2 parents dadaf68 + 6677e23 commit 322f965
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ internal class UserBackendService(
requestJSON.put("properties", JSONObject().putMap(properties))
}

requestJSON.put("refresh_device_metadata", true)

val response = _httpClient.post("apps/$appId/users", requestJSON)

if (!response.isSuccess) {
Expand Down

0 comments on commit 322f965

Please sign in to comment.