OneSignal-Xamarin-SDK icon indicating copy to clipboard operation
OneSignal-Xamarin-SDK copied to clipboard

[Bug]: RemoveExternalUserId/SetExternalUserId no answer

Open twelve-cgn opened this issue 1 year ago • 5 comments

What happened?

I am currently trying to upgrade from 3.10.6 to 4.1.3. So far we have always called:

Com.OneSignal.OneSignal.Current.SetExternalUserId(Application.User.PushUserId);
Com.OneSignal.OneSignal.Current.DeleteTags(new List<string>() { "pushuserid", "Database", "Version"});
Com.OneSignal.OneSignal.Current.SendTags(new Dictionary<string, string>()
                  {
                      { "pushuserid", Application.User.PushUserId },
                      { "Database", Application.User.Database },
                      { "License", Application.User.Licensename },
                      { "Version", Xamarin.Essentials.AppInfo.VersionString }
                  });

We have never used a RemoveExternalUserId before.

If I now simply call a SetExternalUserId, I no longer get a response if another userid was previously set. With RemoveExternalUserId I get no response if no UserId was set so far.

removed = await OneSignalSDK.Xamarin.OneSignal.Default.RemoveExternalUserId();
set = await OneSignalSDK.Xamarin.OneSignal.Default.SetExternalUserId(Application.User.PushUserId);

I have already adjusted the handling of the tags, so that only changed/added tags are set. But also here the SendTags does not work, but I have to send each tag individually by SendTag.

I really despair. So far, the connection never made problems, but with the 4 version really nothing works.

Is there perhaps a simple example application, with the current target versions (Android API 31 / iOS 15.4+)

Steps to reproduce?

Install 4.1.3

What did you expect to happen?

That it works like the old version

OneSignal Xamarin SDK version

4.1.3

Which platform(s) are affected?

  • [X] iOS
  • [X] Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

twelve-cgn avatar Nov 18 '22 13:11 twelve-cgn