lerix_flutter 0.1.0
lerix_flutter: ^0.1.0 copied to clipboard
The official Lerix Flutter SDK — error and crash reporting plus push notifications (APNs, FCM and Web Push) for Flutter apps on iOS, Android and Web.
0.0.2 #
- Web: the Lerix service worker is now registered on its own
/lerix/scope instead of/. At/it was replaced by Flutter'sflutter_service_worker.jsin a defaultflutter build web, so pushes were reported as sent but never shown. A worker left at/by 0.0.1 is removed and its push subscription cancelled; the device resubscribes on the nextinit()(when permission is already granted) and gets a new device id. - Uncaught errors are now sent to Lerix, as critical crashes. The
FlutterError.onError,PlatformDispatcher.onErrorand zone handlers only built the report locally, so automatic capture never reached the dashboard; Flutter's own console output for framework errors is kept. - Web: error reports now include their stack. The browser's JavaScript frames
were parsed as Dart VM frames and all dropped; they are now sent as the
browser wrote them, and Lerix maps them back to Dart files and lines with
the source maps uploaded by
npx @lerix-dev/lerix-cli uploadafterflutter build web --source-maps.
0.0.1 #
Initial release of lerix_flutter, the Lerix Flutter SDK.
- Automatic capture of uncaught Flutter and Dart errors, plus manual
Lerix.throwErrorreporting with type, severity and metadata. - Anonymous user registration per project, with
Lerix.deleteUser()andLerix.reRegisterUser()to recover from a stale or mismatched user id. - Push notifications on iOS (native APNs), Android (FCM, no
google-services.jsonneeded) and Web (VAPID + service worker): permissions, device id / token, foreground and tap callbacks, cold-start tap recovery, topic subscriptions, custom sounds and rich images. - "Unsend" support: a silent follow-up push removes an already-displayed
notification from the device (iOS
removeDeliveredNotifications, AndroidNotificationManager.cancel). Requires theapplication(_:didReceiveRemoteNotification:fetchCompletionHandler:)override inAppDelegate.swift— seeNOTIFICATIONS_SETUP_SIMPLE.md. - Web service worker (
web_sw/lerix-sw.js) now uses the samelerix-*channel, cache and message names the Dart side listens on.