Project showing usage of new mobile object database ObjectBox.
Application receives push notifications and shows them on list. Notifications can be:
- removed
- marked as read
Notifications on list are refreshed automatically.
In order to setup project you have to create new Firebase project with applicationId of this one. Than download google-services.json and put in app folder. Server key for sending messages can be found in Cloud Messaging tab in Firebase project settings.
To send notifications:
https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to": "/topics/notifications",
"data": {
"title": "Some title",
"body": "Some body"
}
}