dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

Can not check available apps on ios #9

Closed jahicDario closed 5 years ago

jahicDario commented 5 years ago

I'm submitting a ... (check one with "x"):

Bug report

Current behavior:

Can not get available apps for ios, tried with next version of react native: react": "16.6.3", "react-native": "0.57.8", "react-native-launch-navigator": "^1.0.4"

Even navigate method return error when I passed hardcoded value of app that is installed on phone.

Expected behavior:

getAvaiableApps or isAppAvailable should return true if app for lunching navigation is installed on phone.

Environment information

jahicDario commented 5 years ago

Adding this in info.plist resolved problem:

<key>LSApplicationQueriesSchemes</key>
    <array>
      <string>citymapper</string>
      <string>comgooglemaps</string>
      <string>navigon</string>
      <string>transit</string>
      <string>waze</string>
      <string>yandexnavi</string>
      <string>uber</string>
      <string>tomtomhome</string>
      <string>com.sygic.aura</string>
      <string>here-route</string>
      <string>moovit</string>
      <string>lyft</string>
      <string>mapsme</string>
      <string>cabify</string>
      <string>baidumap</string>
      <string>taxis99</string>
      <string>iosamap</string>
    </array>
dpa99c commented 5 years ago

These should've been added automatically by the postlink script when the module was linked. Did that not happen?

jahicDario commented 5 years ago

No it did not. Maybe you could add this to documentation as additional check after installation, because I lose a lot of time to debug this :)

markymc commented 4 years ago

Just a note that on React Native 0.61.5 using autolinking (running pod install after the npm install) I didn't get the entries in my info.plist either.

hastom commented 4 years ago