pushlio_flutter 0.1.3
pushlio_flutter: ^0.1.3 copied to clipboard
Pushlio push notification SDK — device registration, rich notifications, delivered/opened receipts, deep links, feature flags and in-app messages.
Changelog #
0.1.3 #
Fixes a broken dependency floor — upgrade if you saw a build error.
flutter_local_notificationslower bound raised to>=20.0.0. 0.1.2 declared>=19.0.0, but the SDK calls the named-parameter API (initialize(settings: …),show(notificationDetails: …)) that only exists from 20.0.0 — apps resolving to 19.x failed to compile with "Too few positional arguments". Reported from a real integration.- Added
scripts/check-flutter-floors.sh(repo): compiles the package against each declared minimum so a wrong floor can't ship again —flutter analyzealone can't catch it, since it always resolves the newest compatible versions.
0.1.2 #
Pushlio.onForegroundMessage(handler)— intercept pushes while the app is in the foreground; returnfalseto suppress the notification and show your own UI (custom dialog etc.). Delivered receipts still flow.Pushlio.reportOpened(n)— count an "opened" when the user acts on your custom foreground UI.init(iosForegroundPresentation:)— set tofalseto stop the system from showing foreground alerts on iOS (pair with the handler above).
0.1.1 #
Compatibility release driven by real-world integration feedback.
- Widened dependency ranges so the SDK installs next to existing
Firebase/OneSignal setups:
firebase_core >=3.6 <5,firebase_messaging >=15.1 <17,flutter_local_notifications >=19 <23, and friends. (0.1.0 pinned the newest majors and broke resolution in older host apps.) init(onBackgroundMessage:)— firebase_messaging allows a single background handler; Pushlio now forwards every non-Pushlio message to your own top-level handler, so both systems coexist.init(androidSmallIcon:)— dedicated status-bar icon resource (launcher icons render as a flat square when tinted).init(androidChannelId/Name/Importance:)— channel is configurable (Android creates channels once; pick importance up front).init(enableLogs:)+Pushlio.deviceIdgetter for support matching.- Tests: foreign (non-
ph) messages are proven side-effect-free. - Server-side: device country now comes from the request IP (GeoIP at the ingest edge), not the device locale — no SDK change required.
0.1.0 #
Initial release.
- Push notifications: automatic device registration, rich notifications (big image + up to 3 action buttons), deep links with cold-start delivery, delivered/opened receipts with an offline-safe idempotent queue
- Identify & segment: external user id, tags, custom events, opt-out
- Feature flags & remote config with persistent cache
- In-app messages: fetch + seen-once marking