Skip to content

Commit

Permalink
Merge pull request #1339 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 Dec 18, 2023
2 parents afb165c + e45e7a4 commit 4b92542
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class OSRequestCreateUser: OneSignalRequest, OSUserRequest {
propertiesObject["timezone_id"] = propertiesModel.timezoneId
params["properties"] = propertiesObject

params["refresh_device_metadata"] = true
self.parameters = params
self.updatePushSubscriptionModel(pushSubscriptionModel)
self.method = POST
Expand Down

0 comments on commit 4b92542

Please sign in to comment.