OneSignal / onesignal-node-api

OneSignal Node Client
Other
30 stars 17 forks source link

Fixed create push notification with external_id #74

Open GizemSever opened 9 months ago

GizemSever commented 9 months ago

Description

Details

Motivation

Testing

Manual testing

Checklist

Overview

Testing

Final pass

ayokay123 commented 8 months ago

Any updates?

ansh commented 8 months ago

What is the update on this? This literally does not work. What a joke.

nan-li commented 8 months ago

Hi @GizemSever, thank you for submitting this PR and include_aliases is indeed not working as expected.

We are working on overhauling the APIs and interfaces to be updated and correct, and the fix for include_aliases will be included.

In the meantime, it is still safe to use include_external_user_ids to send notifications to target by External ID, and include_player_ids to target by Subscription ID, instead of using include_aliases.

This library is actually generated from a primary spec via the OpenAPI generator so no code in this library is updated manually. In addition, include_aliases needs to be more generic since developers can have any string as an alias label, not just "onesignal_id" or "external_id".