Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: How to set ExtenralIds if IncludeExternalUserIds is deprecated for push notifications #80

Closed
1 task done
Nathanrawson opened this issue Nov 22, 2023 · 1 comment

Comments

@Nathanrawson
Copy link

Nathanrawson commented Nov 22, 2023

How can we help?

Hi, in the SDK it says IncludeExternalUserIds is deprecated, however if I set the IncludeAliases label instead, where do I set the externalUserIds. I can't seem to find any documentation on this. Would really appreciate the help

        StringMap contents = new StringMap { En = "This is a new .net test" };
        PlayerNotificationTargetIncludeAliases externalIds = new PlayerNotificationTargetIncludeAliases
        {
            AliasLabel = new List<string> { "external_Id" },

        };
       
        var notification = new Notification(appId: "myAppid")
        {
           Contents = contents,
           IncludeAliases =externalIds,
            TargetChannel = Notification.TargetChannelEnum.Push,
            Headings = new StringMap {En = "message"},
           
        };

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Nathanrawson Nathanrawson changed the title [question]: How to set ExtenralIds if IncludeExternalUserIds is deprecated [question]: How to set ExtenralIds if IncludeExternalUserIds is deprecated for push notifications Nov 22, 2023
@shepherd-l
Copy link
Contributor

This is currently a known bug. As a workaround for now, you can continue to use IncludeExternalUserIds even though it's marked as deprecated

Closing due to duplicate issue here: OneSignal/onesignal-dotnet-api#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants