notibase_flutter 0.2.0 copy "notibase_flutter: ^0.2.0" to clipboard
notibase_flutter: ^0.2.0 copied to clipboard

Official Flutter SDK for Notibase — push registration, identity, events, attribution and the in-app inbox. Pure Dart, no native code: pass us the token from firebase_messaging and everything else is o [...]

notibase_flutter #

Official Flutter SDK for Notibase. Pure Dart — no native code and a single dependency (shared_preferences), so it adds nothing to your build complexity and can never conflict with your Firebase setup.

How it fits together #

Your app keeps using firebase_messaging for the platform push plumbing (you likely already do). Notibase takes the token from there — registration, identity, events, attribution and the in-app inbox are then one call each:

import 'package:notibase_flutter/notibase_flutter.dart';

await Notibase.configure('ck_live_…');   // client key — public by design

// hand over the FCM token (Android) / APNs-backed token (iOS)
final token = await FirebaseMessaging.instance.getToken();
if (token != null) await Notibase.registerPushToken(token);
FirebaseMessaging.instance.onTokenRefresh.listen(Notibase.registerPushToken);

// after login — signature minted by YOUR backend (docs → Security)
await Notibase.identify('user-42', signature: sig,
    attributes: {'plan': 'pro'});

// events → segments + attribution
await Notibase.track('level_complete', properties: {'level': 3});

// in-app inbox
final items = await Notibase.inbox();
await Notibase.inboxMarkRead([items!.first.id]);

Sending goes through your APNs/FCM credentials uploaded in the Notibase dashboard — the SDK only registers tokens and talks to the API.

Verification #

CI is the gate (.github/workflows/flutter-sdk.yml): flutter analyze, unit tests against an in-process mock server (auth headers, retry policy, 4xx no-retry, parsing), and a full e2e where the exact shipped core runs against the real Notibase API (register idempotency, HMAC identify enforcement, track, send → inbox → markRead) with database-side assertions.

Security model #

The ck_ client key ships inside the app and is public by design (Arch §5.3): it can only register devices, identify with an HMAC signature your backend mints, track events, and read its own device's inbox. Server keys (sk_) are refused at configure time with a teaching error.

1
likes
0
points
775
downloads

Publisher

verified publishernotibase.com

Weekly Downloads

Official Flutter SDK for Notibase — push registration, identity, events, attribution and the in-app inbox. Pure Dart, no native code: pass us the token from firebase_messaging and everything else is one call away.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, shared_preferences

More

Packages that depend on notibase_flutter