Closed iamjoyce closed 6 years ago
Thanks for reporting. Disabling Google Maps isn't an edge case I'd thought of, but it should be possible to detect if it's been disabled: https://stackoverflow.com/a/14558066/777265
Tested and verified that availableApps()
returns correctly.
Just FYI - If the map_app is enabled while the app is running, the map_app is still counted as not available (i.e. false
) until the app restarts.
I'm submitting a ... (check one with "x"):
Bug report
Prerequisite:
No map apps were installed, and default map app (Google map) is disabled.
Current behavior:
this.launchNavigator.navigate(...)
Promise
even though the popup did not open.this.launchNavigator.availableApps()
google_maps: true
, which isn't exactly true because Google map not available for use.this.launchNavigator.isAppAvailable('google_maps')
true
Expected behavior:
this.launchNavigator.navigate()
should return something to indicate that map app failed to launch.this.launchNavigator.availableApps()
should not return apps that are disabled.this.launchNavigator.isAppAvailable('google_maps')
should returnfalse
since the app is disabled.Steps to reproduce:
this.launchNavigator.navigate()
this.launchNavigator.availableApps()
Environment information
Runtime issue
If using an [Ionic Native Typescript wrapper]() for this plugin: