Skip to content

[google_maps_flutter] Android clustered pin marker info window onTap not firing #184338

Description

@elitree

Steps to reproduce

When working with cluster manager pins on Android, the pin info window's onTap callback doesn't fire.

To reproduce the issue, use the example project in the flutter packages repo, under packages/google_maps_flutter/google_maps_flutter/example/. Edit lib/clustering.dart to add an onTap to the InfoWindow in _addMarkersToCluster(), around line 171:

        infoWindow: InfoWindow(
          title: markerIdVal,
          snippet: '*',
          onTap: () {
            debugPrint('Info window of $markerIdVal was tapped'); // or any other action
          },
        ),

After making the above edit:

  1. Run the example app in debug mode
  2. Click the "Manage clustering" option
  3. Click "Add cluster manager"
  4. Zoom in until you can see the pins
  5. Tap on a pin
  6. Tap on the pin info window

Note that in Android, nothing happens, but in iOS, the callback fires, so the debug print occurs.

Expected results

The cluster pin marker info window onTap callback should fire for Android just like it fires for other platforms.

Actual results

The cluster pin marker info window onTap callback fires for other platforms, but not for Android.

Code sample

Please see the above code sample in the description.

Screenshots or Video

Logs

No response

Flutter Doctor output

Doctor output
fvm flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.35.7, on macOS 26.4 25E246 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2025.2)
[✓] VS Code (version 1.113.0)
[✓] Connected device (7 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyteam-androidOwned by Android platform teamtriaged-androidTriaged by Android platform team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions