💡
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. Flutter SDK

Request a token

To request a notification token you need to do the following things:

  1. Set a callback that will be called once the token is received correctly from APNS/FCM

MPush.onToken = (token) {
    print("Token retrieved: $token");
}

2. Request the token using MPush:

MPush.requestToken();
PreviousFlutter SetupNextRegister to topics

Last updated 4 years ago

Was this helpful?

🔷