-
Notifications
You must be signed in to change notification settings - Fork 11
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:
- Clone plugin repository and navigate to the project folder
- Run
flutter pub getto install dependencies - Provide your application code in
/example/lib/main.dartfile:
await InfobipMobilemessaging.init(Configuration(
applicationCode: "Your Application Code",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>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:

- Library events
- Server errors
- Users and installations
- Messages and notifications management
- Inbox
- Privacy settings
- In-app chat
- WebRTC Calls and UI
- Migration Guides
- JSON Web Token (JWT) structure and generation example