Skip to content

Dev#5

Open
mrcse wants to merge 2 commits into
mainfrom
dev
Open

Dev#5
mrcse wants to merge 2 commits into
mainfrom
dev

Conversation

@mrcse
Copy link
Copy Markdown
Contributor

@mrcse mrcse commented Feb 10, 2026

This pull request addresses a critical crash in the Android plugin by eagerly initializing the Places SDK as soon as the plugin is attached to the Flutter engine. This ensures that built-in Places SDK activities launched before the Dart-side initialize() call do not cause the app to crash. The version is also incremented to 2.1.2 and the change is documented in the changelog.

Bug Fix: Eager Places SDK Initialization

  • Added eagerlyInitializePlaces() to GooglePlacesAutocompletePlugin.kt, ensuring the Places SDK is initialized with the API key from AndroidManifest.xml during onAttachedToEngine, preventing crashes from built-in activities triggered before Dart-side initialization.
  • Updated pubspec.yaml to version 2.1.2.
  • Documented the bug fix and release in CHANGELOG.md.

Prevents crashes (PlacesLightboxActivity, PlaceAutocompleteActivity)
when map POI interactions trigger Places SDK activities before the
Dart-side initialize() call completes.
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.

1 participant