Skip to content

setOnMyLocationClickListener listener does not trigger in iOS #57

@ari-lindari

Description

@ari-lindari

Bug Report

Plugin(s)

@capacitor/[email protected]

Capacitor Version

Latest Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

Installed Dependencies:

  @capacitor/cli: 5.7.8
  @capacitor/core: 5.7.8
  @capacitor/android: 5.7.8
  @capacitor/ios: 5.7.8

Platform(s)

iOS only

Current Behavior

The listener does not trigger when clicking the my location blue dot.
Console logs do not print.
Does not trigger in iOS.
Works as expected in Android and web.

Expected Behavior

When the my location blue dot is clicked to execute the listener code.

Code Reproduction

console.log('Setting up setOnMyLocationClickListener listener');
await this.newMap.setOnMyLocationClickListener(async (event: any) => {
  console.log('My Location clicked at:', event);
  // Update marker location
  await this.updateMarkerLocation(event.latitude, event.longitude);
});

Other Technical Details

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions