I was having issues with navigator.geolocation.getCurrentPosition()
and iOS 8 never asking for permissions (and consequently failing.)
There are a few new permission types with iOS 8 and there are two things necessary for geolocation to function properly.
##First:##
Download:
CDVLocation.m at GitHub
And update (replace) this file found within your ionic project:
platforms/ios/*YourProjectHere*/Plugins/CDVLocation.m
##Second##
Update your .plist file found within your XCode project. In the Project Navigator, find the Resources
directory and open the YourProjectHere-Info.plist
by clicking it.
Add the following Key / Type / Values:
NSLocationAlwaysUsageDescription
String
Permissions Message for App even when not in use
NSLocationWhenInUseUsageDescription
String
Permissions Message for App when in use
You should now be able to compile and access geo location services in iOS 8!
This might very well not affect new projects but mine was not cooperating until I merged the updates.