Closed gilshaan closed 3 years ago
Hello, I'm facing the same problem. Any solution?
I found the solution. You have to add these permissions in the Info.plist file (keep only the apps you need - in my case, only waze and google maps):
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
<string>citymapper</string>
<string>uber</string>
<string>lyft</string>
<string>transit</string>
<string>truckmap</string>
<string>waze</string>
<string>yandexnavi</string>
<string>moovit</string>
<string>yandextaxi</string>
<string>yandexmaps</string>
<string>kakaomap</string>
<string>szn-mapy</string>
<string>mapsme</string>
</array>
This should be added in the documentation.
Thank you @dcosmin2003
The URL schemes were automatically added to the Info.plist
by the postlink hook script but since autolinking was introduced in React Native v0.60, postlink/postunlink hooks are no longer supported so these are not getting executed.
I'll need to see if there's another way these entries can be automatically added to the plist on module installation.
I found the solution. You have to add these permissions in the Info.plist file (keep only the apps you need - in my case, only waze and google maps):
<key>LSApplicationQueriesSchemes</key> <array> <string>comgooglemaps</string> <string>citymapper</string> <string>uber</string> <string>lyft</string> <string>transit</string> <string>truckmap</string> <string>waze</string> <string>yandexnavi</string> <string>moovit</string> <string>yandextaxi</string> <string>yandexmaps</string> <string>kakaomap</string> <string>szn-mapy</string> <string>mapsme</string> </array>
This should be added in the documentation.
Thanks
Even though i have Uber and Google Maps in my iphone, its returning only apple maps as true..
Working fine in android.. the issue is only in ios
let appNames = []
LaunchNavigator.getAvailableApps()
.then((apps) => {
for (let app in apps) {
if (apps[app] === true)
appNames.push({
name: LaunchNavigator.getAppDisplayName(app),
available: apps[app]
})
}