getInstalledMaps method

  1. @override
Future<Set<String>> getInstalledMaps(
  1. List<MapApp> maps
)
override

Returns the ids of maps (from maps) that have native apps installed.

The probing payload (URL schemes on iOS, package names on Android) is derived from each MapApp and sent to the native side. No map knowledge is hardcoded in native code.

Returns an empty set on platforms that don't support app detection.

Implementation

@override
Future<Set<String>> getInstalledMaps(List<MapApp> maps) async {
  // Web doesn't have "installed" map apps. Universal links only.
  return {};
}