This reference provides an overview of the available Flutter Bridge API methods in SDK v0.0.13. Use it to quickly check method names, platforms, return types, and expected behavior.
Initialization and device state
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Initializes the SDK and registers the device. |
| Android, iOS |
| Returns whether the SDK is initialized and ready. |
| Android, iOS |
| Returns metadata for the current device. |
Alias and user identification
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Returns the current alias for the device. |
| Android, iOS |
| Replaces the current AUTO alias with a known identifier. |
| Android, iOS |
| Sets a known alias and optionally re-sends previously stored custom attributes. |
| Android, iOS |
| Logs out the current user, restores anonymous device state, and controls push behavior after logout. |
Push notifications
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Enables or disables push notifications for the device. |
| Android, iOS |
| Returns the current push opt-in state. |
| Android 13+ |
| Requests the Android 13 POST_NOTIFICATIONS runtime permission. |
| iOS |
| Defers or allows the iOS notification permission prompt. |
| Android, iOS |
| Controls whether notifications are shown while the app is in the foreground. |
| iOS |
| Clears the app icon badge count. |
| Android |
| Forwards a Firebase background message to the native Mapp SDK in multi-provider setups. |
Tags
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Adds a tag to the current device or contact context. |
| Android, iOS |
| Returns all tags for the current device or contact context. |
| Android, iOS |
| Removes a tag from the current device or contact context. |
Custom attributes
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Sets one or more custom attributes for the current device or contact context. |
| Android, iOS |
| Returns custom attributes for the specified keys. |
In-app messaging and inbox
Method | Platform | Returns | Description |
|---|---|---|---|
| Android, iOS |
| Triggers an in-app event by name. |
| Android, iOS |
| Fetches inbox messages. On Android, messages are returned directly. On iOS, messages are delivered through callbacks. |
| Android, iOS |
| Fetches a specific inbox message by ID. |
| Android, iOS |
| Marks an in-app or inbox message as read. |
| Android, iOS |
| Marks an in-app or inbox message as unread. |
| Android, iOS |
| Marks an in-app or inbox message as deleted. |
Geolocation and geofencing
Method | Platform | Returns | Description |
|---|---|---|---|
| Android |
| Starts geofence monitoring. |
| Android |
| Stops geofence monitoring. |
Callback properties
Property | Platform | Payload | Description |
|---|---|---|---|
| Android, iOS |
| Triggered when a push notification is received. |
| Android, iOS |
| Triggered when the user opens a notification. |
| Android |
| Triggered when a notification is dismissed. |
| Android |
| Triggered for silent or data-only pushes. |
| Android, iOS |
| Triggered when rich push media is available. |
| Android, iOS |
| Triggered when an in-app message is ready to display. |
| iOS |
| Triggered when a single inbox message is delivered. |
| iOS |
| Triggered when multiple inbox messages are delivered. |
| Android, iOS |
| Triggered when an in-app API call fails. |
| Android, iOS |
| Triggered when a deep link is received. |
| Android, iOS |
| Triggered when a custom link action is received. |
Enums
NotificationMode
Value | Description |
|---|---|
| Shows notifications in the background and foreground. |
| Shows notifications only when the app is in the background. |
| Receives push payloads without displaying a visible notification. |
SERVER
Value | Description |
|---|---|
| Mapp EU production server. |
| Mapp US production server. |
| EMC EU server. |
| EMC US server. |