dpa99c / phonegap-launch-navigator

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

isAppAvailable fails on W10 #86

Closed Reubend closed 8 years ago

Reubend commented 8 years ago

The isAppAvailable function does not seem to work properly with Google Maps on Windows 10 universal apps. Here's an example of some code where you can see the issue:

launchnavigator.isAppAvailable(launchnavigator.APP.GOOGLE_MAPS, function (isAvailable) {
        if (isAvailable) {
            //This will always run, even if GMaps isn't really installed
        } else {
            //This will never run, even when GMaps isn't really installed
        }
    });
dpa99c commented 8 years ago

As documented, the stock (Bing) Maps is currently the only supported app on the Windows platform. This is because (at least as far as I'm aware) it's not possible to detect the availability or programmatically launch other apps on Windows.

However, this is still a bug, because isAvailable should be false for any app other than launchnavigator.APP.BING_MAPS, but the plugin is currently hard-coded to always return true.