Introduction

MPush

If your project is configured to send push notifications you must use this set of API to properly register your users' devices tor receive push notifications. Also, you'll need to have basic knowledge of Google Firebase and Firebase Cloud Messaging.

Before you start

You must create a Firebase project for your application, this way you'll have the push server key to insert in your MBurger project. This will generate a push API KEY.

To create a new Firebase project, please reference this documentation.

Remember that you'll need at least these Firebase dependencies:

com.google.firebase:firebase-core
com.google.firebase:firebase-messaging

For the FCM client setup refer to this documentation. Long story short you'll need to extend a newFirebaseMessagingServicewhich will triggeronNewTokento obtain the Firebase token which you'll need to send to the MBurger API andonMessageReceived, an event triggered when a push message is received. Be aware that MBurger uses the "data" message types in order to permit the developers to completely customize notifications and behavior on receiving notifications (you'll find all about data messages here)

After you have set up your project for Firebase you can start using Nooko SDK to register users receive FCM messages.

Last updated