bubbl_flutter_sdk library
Bubbl for Flutter: geofenced and scheduled notifications, surveys and analytics, as a thin bridge over the native Bubbl SDKs (Android and iOS). See Bubbl.
Classes
- Bubbl
- Bubbl for a Flutter app: the same functions as the native SDKs (docs/PUBLIC_API.md), in Dart. A thin bridge: everything (geofences, notifications, the queue, consent) runs in the native SDK, which keeps working with the app closed; Dart only calls it and hears from it.
- BubblChoice
- One choice of a choice question.
- BubblCredential
- A device credential issued outside the app, for Bubbl.startWithCredential: installs provisioned ahead of time, or an app's own pairing flow. installId is the install it was issued for. The secret stays out of toString; natively it's kept in the Keystore or Keychain.
- BubblCredentialRejected
- Bubbl was started with a credential issued outside the app, and the server refused it. Bubbl has stopped, until it's started with a new one.
- BubblDiagnostics
- Where Bubbl stands on this device, for support and for an app's own debug screen. The fields both platforms have, then each platform's own (null on the other).
- BubblError
- Something went wrong that Bubbl couldn't fix itself (also in diagnostics' lastError).
- BubblEvent
- What Bubbl does, as it happens (Bubbl.events, Bubbl.addEventListener): each step of a notification's life, geofences entered and left, and errors. For the app's own use (its analytics, its UI); Bubbl records its own.
- BubblGeofenceEntered
- The device entered one of the workspace's locations.
- BubblGeofenceExited
- The device left one of the workspace's locations.
- BubblMediaCompleted
- Its video or audio was played to the end.
- BubblMediaViewed
- Its media was viewed (a video or audio started, say).
- BubblMessage
- A notification from Bubbl, as an app's own handler sees it (Bubbl.setNotificationListener, events): enough to draw it itself, or to hand back to Bubbl.present to show Bubbl's screen. The fields are worked out by the native SDK; json is the notification as the device API sent it, which is all that goes back to native.
- BubblNotificationCtaClicked
- Its call to action was followed.
- BubblNotificationDismissed
- It was closed without following its call to action.
- BubblNotificationDisplayed
- The notification was shown (by Bubbl, or by the app and reported).
- BubblNotificationEvent
- An event about one notification.
- BubblNotificationOpened
- Opened from its system notification.
- BubblNotificationReceived
- A notification arrived (from a geofence, a push or a pull), before it's shown.
- BubblOptions
- How Bubbl.start sets Bubbl up.
- BubblPermissions
- Bubbl.permissions: the permissions Bubbl uses, their state, and asking for them.
- BubblPermissionStatus
- Where the device stands on the permissions Bubbl uses.
- BubblPresentationRegion
- Where Bubbl.present lays out the notification screen's card: centred in the screen less these insets, in logical pixels (points on iOS, dp on Android) from the screen's own edges. Bubbl's window still covers the whole screen, so taps outside the card land on its dimmed background.
- BubblQuestion
- One question of a survey (BubblMessage.questions).
- BubblSurveyStarted
- A survey was started.
- BubblSurveySubmitted
- A survey's answers were sent.
- BubblTestDevice
- A Sandbox test device (BubblDiagnostics.testDevice).
- BubblTestDeviceResult
- What Bubbl.registerTestDevice came to.
Enums
- BubblLocationPermission
- The app's location permission: always, only while in use, refused, or not asked yet.
- BubblLogLevel
- How much Bubbl writes to the platform log (Logcat tag "BubblSDK", or the unified log's subsystem tech.bubbl.sdk on iOS).
- BubblNotificationPermission
- Whether the app may show notifications: allowed, refused, or not asked yet.
- BubblQuestionType
- What Bubbl.submitSurvey takes as a question's answer, by BubblQuestion.type: singleChoice a choice id; multipleChoice a list of choice ids; rating a whole number 1–5; boolean true/false; number a number; slider a number from 0 to 10; openEnded text (≤ 2000).