beeappie_flutter library
BeeAppie for Flutter: users, sign-in, analytics, sessions, crash reports, leaderboards, polls, announcements, feedback, real-time support chat, push notifications, promos of your other apps and ready-made screens, on the native iOS and Android SDKs.
Classes
- Achievement
- An achievement, with the current user's progress.
- Achievements
-
Achievements that work offline (docs/plans/21-achievements-offline.md), on the native SDKs: unlock, increment and
setProgress apply at once to a copy kept on the device and are sent in batches, each with the time it happened, when
BeeAppie can be reached. current reads the copy, also offline. Nothing here throws. The ready-made UI shows
"Achievement unlocked" by itself (celebrate turns it off).
BeeAppie.client.unlockAchievementand the other raw calls stay for apps that want the server's answer. - AppStatus
- BeeAppie
- BeeAppie for Flutter: users, sign-in, analytics, sessions, crash reports, leaderboards, polls, announcements, feedback, real-time support chat and push notifications, on the native iOS and Android SDKs.
- BeeAppieClient
-
The API client for the app's end user: leaderboards, polls, announcements, feedback and support chat. Get it as
BeeAppie.client; the native SDK keeps the user and renews their token. A user is created only when a call needs one: polls and announcements can be read before (with the app key alone), voting or writing creates it. - BeeAppieFeedback
-
Feedback that survives offline (docs/plans/22-languages-and-offline-sends.md), on the native SDKs: send keeps the
message (and screenshot) on the device first, then sends it, now or as soon as BeeAppie can be reached. The team sees when
it was written. Nothing here throws.
client.submitFeedbackstays for apps that want the server's answer. - BeeAppieOptions
- How BeeAppie runs. See BeeAppie.start.
- BeeAppiePromoBanner
- A promo banner: the full width, 50 to 90 high depending on the width (about 56 on a phone, 90 on a tablet). Put it at the bottom of a screen, or where an ad banner failed to load.
- BeeAppiePromoCard
- A promo card, 300×250: for lists, game-over screens and "More apps" screens.
- BeeAppieSurveyView
- A feature survey inline, where you place it: the survey with the key surveyKey, asked as a card in your layout. When there is nothing to ask it takes no space and calls onNoSurvey; never an error. After an answer it thanks the user, then goes (onFinished); the close button counts as asked.
- ChatConnection
-
Real-time support chat, on the native SDK's connection: new messages, typing indicators and conversation changes as they
happen, for the conversations you join (and updates about all of the user's own conversations). Messages are still sent
with
BeeAppie.client.sendMessage, which pushes them here. Get it withBeeAppie.chat(). - ChatConnectionChanged
- Up (true) or down (false), whatever the cause. Messages are not replayed: on true, fetch what you show again.
- ChatConversationDeleted
- The conversation was deleted, by the user or by the team.
- ChatConversationUpdated
- One of the user's conversations changed: new last message, unread count, status, title…
- ChatEvent
- What happens in the real-time chat. See ChatConnection.events.
- ChatMessage
- A new message in a joined conversation, from the team or the user (e.g. sent from another device).
- ChatTyping
- Someone else in a joined conversation started or stopped typing.
- Communication
- An announcement from the app's team, for this user.
- CommunicationsView
-
The announcements as
BeeAppie.loadCommunicationsfound them. - Consent
- What the user allows the app to collect. Nothing is collected until they agree.
-
ContentItem<
T> - An item of a collection: its stable key and its value.
-
ContentResult<
T> - A collection's items as read: the copy on the device, and whether it was checked with BeeAppie just now.
- Conversation
- A support conversation between the user and the app's team.
- ConversationTopic
- One of the app's topics (set up in the dashboard's chat settings): pass its key to BeeAppieClient.createConversation.
- Entitlement
- An entitlement the current user has from BeeAppie, e.g. "pro". One way to have access, next to the app's own store purchases: check both, and never take away what a store purchase gives because BeeAppie does not list it.
- Entitlements
- The current user's entitlements from BeeAppie, as of fetchedAt: the last ones fetched, also offline.
- ErrorCodes
- The codes in BeeAppieApiException.code that apps may want to handle.
- LeaderboardList
- The app's leaderboards as Leaderboards.list found them: from BeeAppie now, or kept on the device.
- Leaderboards
-
Leaderboard scores that survive offline (docs/plans/22-languages-and-offline-sends.md), on the native SDKs: submitScore
keeps the score on the device with the time it was made and sends it, in batches, as soon as BeeAppie can be reached. It
counts in the season running when it was made, if it arrives at most 7 days late. Nothing here throws. load reads a
leaderboard and keeps a copy for offline.
client.submitScorestays for apps that want the server's answer at once. - LeaderboardSeasons
- A leaderboard's past seasons as Leaderboards.seasons found them: from BeeAppie now, or kept on the device.
- LeaderboardView
- A leaderboard as Leaderboards.load found it: from BeeAppie now, or the copy on the device.
- Message
- Poll
- PollChoice
- An option the user chose, with their own text for an "Other" option.
- PollOption
- PollOptionResult
- PollResult
- PushOpened
- A tapped BeeAppie push notification.
- Ranking
- RankingEntry
- RankingSeason
- A season of a leaderboard: pass its key (or "current", "previous") as the season.
- RemoteConfig
- Remote config values and feature flags for the current user, as of fetchedAt: the last ones fetched, also offline (kept on the device). Each getter takes the value to use when the key is missing or of another type, so the app works before the first fetch.
- RemoteContent
- Lists the app's team publishes in the dashboard (quotes, tips, levels…), downloaded only when the app asks with get: everything the first time, then only what changed. A copy is kept on the device, so it works offline. Needs no user and no consent. Nothing here throws. Use BeeAppie.content.
- ScoreFormats
- The text of a score in a leaderboard's format, as BeeAppie writes it (RankingEntry.scoreText).
- SignInResult
- TypingSender
- Sends typing indicators for one conversation without flooding the chat: "typing" at most every resendInterval while the text changes, and "stopped" once the text is cleared (e.g. sent) or left alone for idleAfter. Call textChanged on every change of the message box (e.g. a TextField's onChanged), and close when leaving the conversation. Failures are ignored: typing is only a hint.
- User
- The app's end user: anonymous until signed in.
- UserData
- The signed-in user's own data, stored by BeeAppie: small JSON objects under a collection and a key, the same on all their devices and back after a reinstall. Reads come from the copy on the device, so they work offline; writes apply to it at once and are sent when BeeAppie can be reached. Last write wins. Writes made before the user signs in wait and are sent once they do. Nothing here throws.
- UserDataRefused
-
A write BeeAppie refused for good: the item, and why (e.g.
item_too_large,user_storage_full,storage_full). - UserIdentity
- UserSuspension
- A suspension of the user by the app's team, to show them while it lasts.
Enums
- BeeAppieAppearance
- BeeAppieScreen
- A screen of BeeAppie's own, opened with BeeAppie.openScreen: the native ones (SwiftUI on iOS, Jetpack Compose on Android), in your theme colors and the device language.
- CommunicationPriority
- CommunicationType
- ContentType
- ConversationStatus
- FeedbackCategory
- MessageType
- PollSelectionType
- PollStatus
- PushPermission
- Light or dark for BeeAppie's screens (BeeAppie.setScreenAppearance). Whether the phone lets the app show notifications.
- SurveyPosition
- Where BeeAppie.showSurvey puts the card over the dimmed screen.
- SurveyResult
- What happened to a survey the app asked to show.
- UpdatePrompt
- Whether this version must or can update, and maintenance (set in the dashboard's Remote config). What an app should do about its version, as its team chose in the dashboard.
Typedefs
- InstallAuth = ({String context, String? token})
- The token when there is a user (null before one exists) and the X-BeeAppie-Context header, from the native SDK.
Exceptions / Errors
- BeeAppieApiException
- An error returned by the BeeAppie API. Branch on code (see ErrorCodes).