IOS: Linking.openURL choose map app instead of default

Please provide the following:

  1. SDK Version: 37
  2. Platforms(Android/iOS/web/all): iOS

Hi ! I’m trying to reproduce the same behavior as on Android when a user clicks on a map link.
Currently my code looks like this:

if (Platform.OS === 'ios') {
        Linking.openURL(`http://maps.apple.com/maps?daddr=${daddr}&dirflg=d`);
    } else {
        Linking.openURL(`http://maps.google.com/maps?api=1&daddr=${daddr}&travelmode=driving`);
    }

On Android, I have the “choose app” native drawer proposing me all the alternatives to Google Maps (CityMapper, Waze, etc). But in iOS, I’m not able to reproduce the same behavior.

Do you know how I can manage to do that ? Thx !

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.