I just upgrade my phone to iOS 10.2.1.
In my Swift App (using 3.0), I am trying to check if Google Maps is installed on the phone. If yes, open this address in Google Maps.
UIApplication.shared.canOpenURL(NSURL(string:"comgooglemaps://")! as URL)
Even though I have Google Maps installed, the expression evaluates to false.
Oddly I can open Google Maps in Swift with this
UIApplication.shared.open(NSURL(string:
"comgooglemaps://?saddr=&daddr=\(lat),\(lon)&directionsmode=driving")! as URL, options: [:], completionHandler: nil)
Was there some kind of change in iOS 10.2.1 that prevents the first expression from evaluating to be true?
The URL seems to be the same (comgooglemaps)
Is there something required now in the plist?