OneSignal / onesignal-dotnet-api

Other
13 stars 11 forks source link

[Bug]: external id is not set #20

Closed maoryadin closed 1 year ago

maoryadin commented 1 year ago

What happened?

We are using the latest SDK. When I try to update a Player's external id, it deletes the player's external id but does not set a new one.

example:


           var oneSignalClient = new OneSignalCustomerClient();
            var player = oneSignalClient.GetPlayer(deviceID);
            player.ExternalUserId = "124";
            var results = oneSignalClient.UpdatePlayer(player);

Steps to reproduce?

run provided code snippet. (OneSignalCustomerClient is just a wrapper of the DefaultApi instance.)

What did you expect to happen?

Update the external id of the player.

Relevant log output

No response

Code of Conduct