Set up push notifications

How can I set up push notifications with Nakama?

We can easily write a Lua module which provides the One Signal HTTP API as a set of functions which can be imported into other code but instead we’ll import one written by the Heroic Labs team and maintained with the community. You can find the code in the official repository of modules.

Download and add the “onesignal.lua” file to the location you use for your Lua modules. You can put the files into whatever folder you like and specify the location when you run the server.

nakama --runtime.path "/some/path/dir/"

When you server is started you’ll see the One Signal module loaded and recorded in the startup logs. In development it can be helpful to run the server with “–log.stdout” for log output in the console.

Read more on push notifications, keys and credentials, etc here