In our legacy system we give daily bonuses to players as a background task, that pushes the bonus into their inbox and optionally sends a push notification. During the port to Nakama I’ve created an S2S script to do the same that is externally called by a cron job.
I wonder if scheduled scripts would be better as an internal feature of Nakama.
The bonuses are designed to arrive during a two hour window in the afternoon/early evening based on the player’s location (timezone would also work).
The alternative is to use a third party (OneSignal?) to schedule push notifications. I don’t think this is the right approach for us, for the following reasons.
We can’t rely solely on push as many of our players play in the web browser on desktop, and others have push disabled.
I dislike having the push notifications scheduled externally and the bonus given on login as they can (and will) arrive at different times and cause confusion.
Also we are are currently using Firebase Cloud Messaging which suits our needs but doesn’t support localised scheduling (I don’t know if OneSignal do either).
We are hosting Nakama ourselves, so performance issues are very much our own problem and the script is carefully designed to minimise impact.