Back to Changelog

Released

ImprovementSDKs

Flutter SDK 1.2.0

Fewer requests and automatic back-off on rate limits, working secure identification with an expiry callback, X-close dismissals, surveys from every trigger type, and new options for visitor sessions, user properties and screen tracking.

The Flutter SDK sends far fewer requests: repeated identify, event and screen calls are sent once, the navigator observer tracks a screen only when the route changes, and only one survey loads at a time. When the API answers 429 Too Many Requests, the SDK pauses for the time the API asks instead of retrying, while survey answers wait and are still delivered. Requests now time out after 30 seconds instead of blocking the queue.

Surveys picked by Immediate, Delayed and Tracked Event triggers now show, and closing a survey with its X before the final submit is recorded as a dismissal. Secure identification works, the SDK keeps the signature across app restarts, and the new onSignatureExpired callback tells your app when to fetch a fresh signature. stopSession() now lasts until you start the session again, and resetUser() carries on as a visitor instead of stopping the session.

New options let you keep visitors quiet until they sign in (autoStartVisitorSession), update a signed-in user's properties (setUserProperties), check for a confirmed identity (isIdentified), keep the user in memory only (persistUserAcrossRestarts), keep screens such as a splash out of automatic tracking (skippedScreens), track the root route (trackRootRoute), and see what the SDK sends (onRequest / onResponse). The SDK no longer depends on Flutter's Material library. See the Flutter SDK docs.