Skip to content

AleksanderMielczarek/ObjectBoxExample

Repository files navigation

ObjectBox Example

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.

Screenshot

Setup

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"
  }
}

Other used libraries

Releases

No releases published

Packages

No packages published

Languages