Skip to content

How to start Example app

Olga Koroleva edited this page Oct 20, 2022 · 5 revisions

For Mobile Messaging Plugin we've provided an Example app, which can be easily setup and started with your credentials:

  1. Clone plugin repository and navigate to the project folder
  2. Run flutter pub get to install dependencies
  3. Provide your application code in /example/lib/main.dart file:
 await InfobipMobilemessaging.init(Configuration(
        applicationCode: "Your Application Code",

Android setup

Obtain Firebase Sender ID and provide it in /example/lib/main.dart:

 await InfobipMobilemessaging.init(Configuration(
        ...
        androidSettings: AndroidSettings(firebaseSenderId: "Your Firebase Sender ID"),

and /example/android/app/src/main/res/values/strings.xml file:

<resources>
    ...
    <string name="google_app_id">Your Firebase Sender ID</string>
</resources>

iOS setup

To complete setup for iOS you need to open install Cocoapod dependencies - run cd Example/ios & pod update to install them. Then open the project in the XCode and select your development team for signing the app for Example target:

Clone this wiki locally