Skip to content

Conversation

jokerttu
Copy link
Contributor

Fixes issues with the Flutter plugin lifecycle handling.

The problem was that GoogleMapsNavigationSessionManager was being created in the onAttachedToActivity lifecycle method instead of onAttachedToEngine. As a result, the required method channels were not initialized in time. This issue became visible when a cached Flutter engine was used. Also improved state handling for the plugin.

Fixes #238

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

@jokerttu jokerttu force-pushed the fix/flutter-plugin-lifecycle-logic branch from dcb75e1 to f0e0092 Compare September 30, 2025 13:07
Copy link
Contributor

@illuminati1911 illuminati1911 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android project withCachedEngine will crash
3 participants