SeVeNDuS / node-onesignal-api

OneSignal's unofficial node.js client library for using OneSignal Rest API.
MIT License
50 stars 11 forks source link

notifications "Queued" and not going through #10

Closed GeoffreyPlitt closed 7 years ago

GeoffreyPlitt commented 7 years ago

I am creating notifications with params like this:

{
        app_id: '...',
        include_player_ids: ['...'],
        contents: {
            'en': 'Notification body',
        },
        tags: [{ "key": "custom_tag", "relation": "=", "value": "custom_value"}]
}

The OneSignal dashboard shows them as "queued", why is that?

Also, can you update the examples to show how to send to one device, i.e. using the include_player_ids parameter? It isn't clear to me where that parameter should go.

GeoffreyPlitt commented 7 years ago

Update: This is solved. The issue for me is that I wasn't paying attention to the fact that the example contains tags, since my device contained no tags, so it had no destination devices. Removing the tags fixed this.