Skip to main content

shipbook_flutter 2.1.0 copy "shipbook_flutter: ^2.1.0" to clipboard
shipbook_flutter: ^2.1.0 copied to clipboard

Shipbook gives you the power to remotely gather, search and analyze your user logs and exceptions in the cloud, on a per-user & session basis.

2.1.0 #

Added #

  • App-state events. The SDK now sends an event when the app becomes active, inactive or goes to the background, with the screen orientation, as the React Native and browser SDKs do. The eventLoggingDisabled config turns them off.

Changed #

  • log.e/w/i/d/v and Log.error/warning/info/debug/verbose take any caught error, not only an Error, and an optional stack trace: catch (error, stackTrace) { log.e('Payment failed', error, stackTrace); }. Code that passes an Error keeps working.

Fixed #

  • A logged error now shows the stack of where it was thrown, not of the log.e call. Without a stack trace argument, an Error uses its own.
  • Uncaught errors kept every frame except the one that threw. That frame is now first, so Loglytics groups the crash by the line that failed.
  • Screen events kept the upload's time instead of the time the screen opened, so they sorted after the logs that followed them.

2.0.1 #

  • Fixed apps on Windows, macOS, Linux and web never connecting to Shipbook. The SDK sent no device ID on those platforms, so the server turned the login down. On web, the SDK stopped before it even tried to log in. The SDK now reads the device ID on every platform. Where there is none, it creates a random ID and keeps it on the device.
  • If reading the device or app info fails, the SDK now logs a warning and logs in anyway, instead of waiting forever.

2.0.0 #

  • Upgrade to get an SDK that follows the Shipbook server: it stops sending when the server refuses your app or is busy, and calling Shipbook.start again costs nothing.
  • The SDK obeys the server. If the server refuses the app (an unknown app ID, or traffic far past fair use), the SDK pauses: it sends nothing and drops new logs until the pause ends, at most 30 days and across restarts. If the server or a proxy answers busy (429 or 503), it waits (the Retry-After time, 5 minutes without one, at most an hour) and sends the saved logs afterwards. Shipbook.enableInnerLog(true) prints paused until … or backing off until ….
  • Every request carries x-shipbook-app-id and x-shipbook-sdk: flutter/2.0.0.
  • Calling Shipbook.start again with the same app ID and key returns the first call's result without logging in again.
  • Removed the optional url parameter of Shipbook.start, which was never read. Use Shipbook.setConnectionUrl to point the SDK at another server.

1.1.0 #

  • Added Shipbook.getSessionHeaders(). Add its headers to requests toward your own backend, and the Shipbook console links this app session to the sessions those requests create in your Node.js backend. It returns an empty map until login completes, so spreading it is always safe.
  • Fixed login failing when the cached config was left corrupt, for example by a crash mid-write. The SDK now discards it and falls back to the default config.

1.0.0 #

  • Initial stable release
  • Remote logging with configurable severity levels
  • Automatic uncaught exception and Flutter error capture
  • User identification and session tracking
  • Screen tracking
  • Offline log queuing
  • Dynamic remote configuration

0.0.1 #

  • Initial development release
1
likes
110
points
857
downloads

Documentation

API reference

Publisher

verified publishershipbook.io

Weekly Downloads

Shipbook gives you the power to remotely gather, search and analyze your user logs and exceptions in the cloud, on a per-user & session basis.

Homepage

License

MIT (license)

Dependencies

device_info_plus, flutter, http, package_info_plus, shared_preferences

More

Packages that depend on shipbook_flutter