dpa99c / phonegap-launch-navigator

Phonegap/Cordova plugin which launches native route navigation apps for Android, iOS and Windows
369 stars 129 forks source link

Detect available apps (Ionic cordova app) #230

Closed petrot closed 4 years ago

petrot commented 4 years ago

Documentation issue

What is the exact way to list the available apps on the device? For me, there wasn't any app on the list on iOS (and just the Apple maps worked), until I wrote the following lines to the (Ionic) config.xml:

<edit-config file="*-Info.plist" mode="merge" target="LSApplicationQueriesSchemes">
            <array>
                <string>comgooglemaps</string>
                <string>waze</string>
                <string>uber</string>
            </array>
        </edit-config>

After this config I could choose from my installed apps (Google maps, Waze, Apple maps)

dpa99c commented 4 years ago

This plugin includes all relevant iOS URL schemes into the -Info.plist at plugin installation time.

You can verify this by building and running one of the apps in the example project.

As to why this configuration wasn't added in your particular case, I can only speculate, however it's possible that a conflict with another plugin or error during the build process caused Cordova to fail to add the entries to the -Info.plist