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

iPhone 7 ios 13.1.3 google schema problem. #27

Closed orhanoksuzz closed 4 years ago

orhanoksuzz commented 4 years ago

Hi, The application does not see the google maps schema in iphone 7 and ios 13.1.3 version. I want to open the desired location with google maps.The screenshots of the current application are attached.

Image 1 Image 2 Image 3

{ "name": "navigatorslaunch", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "react": "16.9.0", "react-native": "0.61.5", "native-base": "^2.13.8",

"react-native-launch-navigator": "git+https://github.com/dpa99c/react-native-launch-navigator.git#dev",
"react-native-vector-icons": "^6.6.0"

}, "devDependencies": { "@babel/core": "^7.6.2", "@babel/runtime": "^7.6.2", "@react-native-community/eslint-config": "^0.0.5", "babel-jest": "^24.9.0", "eslint": "^6.5.1", "jest": "^24.9.0", "metro-react-native-babel-preset": "^0.56.0", "react-test-renderer": "16.9.0" }, "jest": { "preset": "react-native" } }

dpa99c commented 4 years ago

The likely cause of this is that the script which adds the query schemes from the package.json into the Xcode project *-Info.plist has failed to run for some reason so the NSURLScheme entries are not present in the plist. You can check this in Xcode and add them manually if they are missing.

orhanoksuzz commented 4 years ago

The likely cause of this is that the script which adds the query schemes from the package.json into the Xcode project *-Info.plist has failed to run for some reason so the NSURLScheme entries are not present in the plist. You can check this in Xcode and add them manually if they are missing.

How to add manually? should add standard key?

<key>citymapper</key>

or

    <key>What will be the key value?</key>
    <array>
        <string>citymapper</string>
                ..........
    </array>
dpa99c commented 4 years ago

You need to add to the LSApplicationQueriesSchemes key Screenshot 2020-01-16 at 11 27 46

The postlink hook script should add these automatically so I will test the example project with latest version of React Native to check if there has been a breaking change which has stopped the script from working.

orhanoksuzz commented 4 years ago

Thanks. It works after adding the info.plist file. `LSApplicationQueriesSchemes

citymapper comgooglemaps navigon transit waze yandexnavi uber tomtomhome com.sygic.aura here-route moovit lyft mapsme cabify baidumap taxis99 iosamap `
hb2708 commented 4 years ago

@orhanoksuzz feel free to mark the issue as closed if it's solved for you