NotificationCenter Widget Failed To Use CoreLocation

Posted by James Ye on Stack Overflow See other posts from Stack Overflow or by James Ye
Published on 2012-10-24T04:58:05Z Indexed on 2012/10/24 5:00 UTC
Read the original article Hit count: 170

Filed under:
|
|
|

I'm writing a notification center widget, and it had to use location information. In normal apps I use CoreLocation and it works fine. But in my widget, I tried to locationServicesEnabled but it didn't go to the callback functions, and the authorizationStatus is always kCLAuthorizationStatusNotDetermined, and the authorize setting didn't show up in Setting -> location service. I already set the delegate to the class.

The system's Yahoo weather widget can auto locating and it uses CoreLocation too, so the widget do have ability to use location service.

Why CoreLocation doesn't work on my widget?

© Stack Overflow or respective owner

Related posts about ios

Related posts about widget