ours_privacy 1.0.1
ours_privacy: ^1.0.1 copied to clipboard
Official Ours Privacy analytics SDK for Flutter apps on iOS and Android: events, identity, consent, sessions, screens, and deep-link attribution.
Changelog #
1.0.1 #
- A visitor ID set with
setVisitorId(), thevisitorIdoption, a deep link, orreset()stays marked as manually set after the app restarts.
1.0.0 #
- Initial release of the Ours Privacy Flutter SDK for iOS and Android apps, written in Dart with no native setup. Requires Flutter 3.13+ (Dart 3.1+).
- Track events, identify users, and manage default event, user custom, and consent properties; events are batched, persisted across restarts, and sent every 10 seconds or on
flush(). - Opt in to canonical
$mobile_*lifecycle events (first open, app open, session start/end, engagement, app update) withtrackAutomaticEvents: true; calltrackScreen()from aNavigatorObserverfor screen views. Invalid screen labels are ignored with a warning. - Consent controls:
optOutTrackingByDefault,optInTracking(), andoptOutTracking(), which discards unsent events and cancels uploads in progress. - Web-to-app identity and attribution with
trackDeepLink(),setVisitorId(), andgetVisitorId():ours_visitor_id, UTM parameters, and ad click IDs are read from links without sending the raw URL. - No IDFA or advertising identifiers; no AppTrackingTransparency prompt is needed.
- Storage failures surface as
OursPrivacyException. For tests, passstorage: InMemoryStorage()andhttpClient:toinit(), and callclose()to stop the SDK's timers and lifecycle listener.