How it works🔗
Local notifications🔗
The MRGS SDK provides an API for creating and managing notifications that will be displayed on the client (smartphone/tablet). To display such notifications, MRGS uses the API provided by the platform. You can read how notifications work on Android on the website Android Developer, and how notifications work on iOS - on the website Apple Developer.
Server notifications🔗
Server notifications are sent to the client by using Firebase (Android) and APNS (iOS) services. The MRGS server aggregates, queues and sends notifications to Firebase and APNS servers only for those devices whose tokens were received from the client. The MRGS SDK receives these tokens on the device and sends them to the MRGS server at the moment the SDK is initialized. There are two ways to schedule sending server notifications:
- A person (Administrator) goes to the MRGS website and creates a newsletter in the following menu Settings -> Push notification section.
- The game server using the API sends a set of scheduled notifications to the MRGS server.
At the scheduled time, MRGS will start sending notifications via Firebase/APNS to devices.

Created: 2020-01-20