Flutter

Upgrade within 1.x

Changes to check when updating a Flutter 1.x integration.

Check the package and native versions

Flutter 1.6.0 wraps native SDK 1.6.0 on both platforms. Updating a native SDK elsewhere does not update this plugin. Review the Flutter changelog for the package you install.

Upgrade from before 1.4.0

Flutter 1.4.0 introduced native consent-required configuration. If Stay22 must receive no request before affirmative consent, add the Stay22RequiresConsent iOS key and com.stay22.sdk.RequiresConsent Android key shown in the quick start, then send the current choice to Stay22.setEnabled(...) at every launch and whenever it changes. An enabled value saved before native 1.4.0 does not count as that choice.

Flutter 1.3.0 lowered the Android build minimum to API 24. The 1.6.0 package requires Flutter 3.19 and Dart 3.3 and gets Android's native dependency from the host's Maven configuration. Keep that repository declaration when updating your project.

Review privacy and initialization

The overview explains the persistent session identifier, installed-app answers and bundled Apple privacy manifest. Review store declarations when upgrading; notification permission alone does not supply your app's consent decision.

Continue using setTravelContext and the Flutter testing functions in Flutter 1.x. Newer native notifications.ensure or diagnostic-receipt APIs are not supplied by Flutter 1.6.0.

On this page