Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Android: SymbolManager.OnSymbolClickListener Not Called

Open
#1,051 4 comments 2 reactions 1 assignee View on GitHub

@langsmith is already working on this.

Since Sep 30, 2019.

Assessment

This issue has not been assessed yet.

Description

annotation-plugin
Description

I have a mapView contained in a fragment, and am adding Symbols to the map and observing clicks on them. However after backgrounding/foregrounding the app, or navigating to another activity and back to the one containing the map, the OnSymbolClickListener is no longer receiving symbol click events.

Steps to reproduce
  1. Add Symbols to a map using the symbolManager.update(Symbol symbol) function, and observing clicks on these symbols via symbolManager.addClickListener().
  2. Verify taps on the Symbols trigger the clickListener
  3. Background/Foreground the app
Expected behavior

The click listener should still fire when symbols are tapped

Actual behavior

The click listener is no longer fired when symbols are tapped

While debugging, I was able to verify that the map's SymbolManager still had a registered onClickListener after foregrounding the app, and that the Symbols themselves were still present.

Configuration

Android versions: Android 8
Device models: Samsung Galaxy S8
Mapbox SDK versions:
mapbox-android-sdk:7.3.1
mapbox-android-plugin-annotation-v7:0.5.0

Dominant language
Java
Stars
242
Forks
116
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mapbox/mapbox-plugins-android

All issues in mapbox/mapbox-plugins-android

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.