OneSignal/OneSignal-DotNet-SDK

[question]: How do I retrieve a users current tags?

Closed this issue · 4 comments

How can we help?

As per title.

In previous implementations of the OneSignal Xamarin SDK, I could invoke the following code to retrieve the tags for a given user:

var myTags = await OneSignal.Default.GetTags();

However, in the current OneSignalSDK.DotNet nuget package (5.0.2), I cannot see an equivalent method.

In this repository I can see that the OneSignalSDK.DotNet.OneSignal class has a method CreateOneSignal which creates a platform specific OneSignalSDKInternal which implements a GetTags method.

This is my IntelliSense view for the OneSignalSDK.DotNet.OneSignal APIS:

onesignal-1 onesignal-2

And when I have used dotPeek to inspect the DLLs bundled into the MAUI app, dotPeek does not show any references to OneSignalSDKInternal.

Am I missing a NuGet reference? How can I get access to the GetTags method?

Code of Conduct

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

We are in the process of adding GetTags to 5.x and it should be available in the next release. (We have a PR up for it here: #84)

@shepherd-l Thanks for following up and great to see there was already a PR. 🎉

Is there an ETA on when this feature will be released? We have a few apps in the final steps of a MAUI conversion and this was one of the final pieces.

@matthewrdev
We plan to get a release out next week

This is available in the 5.1.0 version