Overview
Local notification purpose is to notify users to sue the mobile app for better learning experience.
Here user will get notification on timely basis, and the notification will be purely locally generated. For this, when the user installs the application and run it for the first time, based on certain configurations a notification event will be set on a particular date* and time*, which will be triggered at specified time with some message*.
...
Property | type | Value (Example) | Description |
---|---|---|---|
id | int | id of the notification will be integer, which will be unique | |
type | enum | Notification type will be integer - Their can different notification types, like DOWNTIME, GREETINGS, NON-DISPLAY and OTHERS | |
data | obj | translations | Object specifying the language, Example en |
obj | interval | Interval specifies the time interval difference between 2 notification. Example, for weekly once value should be7 .on a specific weekday Ex: "interval": "weekday" should go with 2 format of | |
obj | start | Date and time from when the notification will be triggered for the first time.
| |
obj | occurrence | Number of times the notification should be triggered, if null then notification will be shown infinite times on the specified date and time or weekday |
Translations
object contains object with these properties with key specifying language code
Property | type | Value (Example) | Description |
---|---|---|---|
en | obj | title | Title of notification, should be string |
obj | msg | Description of notification, should be string | |
hi | obj | title | Title of notification, should be string |
obj | msg | Description of notification, should be string | |
default | obj | title | Title in any default language |
obj | msg | Message in any default language |