💡
MPush
  • 💡MPush Documentation 💡
  • 🔑 API
    • Introduction
    • Authentication
    • Send Notifications
    • Topics
  • 🍏 iOS SDK
    • Introduction
    • Installation
    • Add Push Notification to your app
    • Integrate MPush
    • Rich Notifications
  • 📱 Android SDK
    • Introduction
    • Setup
    • Register a device
    • Subscribe to topics
  • 🔷Flutter SDK
    • Introduction
    • Installation
    • Android Setup
    • iOS Setup
      • Rich Notifications
      • Custom replacements
    • Flutter Setup
    • Request a token
    • Register to topics
    • Launch notification
Powered by GitBook
On this page

Was this helpful?

  1. Android SDK

Introduction

Previous Android SDKNextSetup

Last updated 4 years ago

Was this helpful?

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 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 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 )

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

📱
this
this
here