dpa99c / phonegap-launch-navigator

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

ios10 can not open the default map #107

Closed jerryaner closed 7 years ago

jerryaner commented 7 years ago

2016-12-08 17:41:08.319053 HelloCordova[620:289886] -canOpenURL: failed for URL: "citymapper://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.323011 HelloCordova[620:289886] -canOpenURL: failed for URL: "comgooglemaps://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.325824 HelloCordova[620:289886] -canOpenURL: failed for URL: "navigon://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.328501 HelloCordova[620:289886] -canOpenURL: failed for URL: "transit://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.331258 HelloCordova[620:289886] -canOpenURL: failed for URL: "tomtomhome://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.333757 HelloCordova[620:289886] -canOpenURL: failed for URL: "uber://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.335885 HelloCordova[620:289886] -canOpenURL: failed for URL: "waze://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.337912 HelloCordova[620:289886] -canOpenURL: failed for URL: "yandexnavi://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.340428 HelloCordova[620:289886] -canOpenURL: failed for URL: "com.sygic.aura://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.342553 HelloCordova[620:289886] -canOpenURL: failed for URL: "here-route://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.344737 HelloCordova[620:289886] -canOpenURL: failed for URL: "moovit://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" 2016-12-08 17:41:08.346152 HelloCordova[620:289886] THREAD WARNING: ['LaunchNavigator'] took '43.512207' ms. Plugin should use a background thread. 2016-12-08 17:41:08.531724 HelloCordova[620:289936] [Client] Geocode error: Error Domain=GEOErrorDomain Code=-8 "(null)" 2016-12-08 17:41:08.533411 HelloCordova[620:289886] LaunchNavigator[native] ERROR: The operation couldn’t be completed. (kCLErrorDomain error 8.)

jerryaner commented 7 years ago

when add this plugin to android platforms,it work well

dpa99c commented 7 years ago

Geocode error: Error Domain=GEOErrorDomain Code=-8 "(null)"

The plugin failed to launch Apple Maps because geocoding of the destination failed.

If you try building+running one of the example projects on iOS 10, you should find that Apple Maps launches fine on iOS 10 with a valid destination.

It's on my TODO list to change the plugin not to use the geocoder unless it's really needed so as to avoid this kind of error (see #106).

dpa99c commented 7 years ago

This has been fixed in v4 (see #93).