Onesignal module has wrong code

Hello Heroic Labs,

You publish onesignal.lua code to [https://github.com/heroiclabs/nakama-modules/blob/master/modules/onesignal.lua](http://Onesignal - Nakama Adapter)
But if you wanna send notification to specific user, onesignal return error (http 400). Because onesignal.lua 187 line
content.included_player_ids = player_ids
which is wrong because it should be
content.include_player_ids = player_ids

Onesignal documentation say it (https://documentation.onesignal.com/reference#create-notification)

Thanks @volvox. Can you open a pull request for the change?

Yes I opened, thanks

1 Like