andrewmm / ncwunderground

iPhone Notification Center Widget for Weather Underground
8 stars 1 forks source link

Doesn't save location permissions #16

Closed andrewmm closed 11 years ago

andrewmm commented 11 years ago

Perhaps try running location requests through a daemon rather than directly in the widget?

andrewmm commented 11 years ago

Quasi-resolved by allowing the user to specify a fixed location (1f5f08e) rather than always relying on the GPS. No longer has a milestone, but it'd still be good to get a fix for this.

andrewmm commented 11 years ago

Location authorization is now persistent (thanks to http://stackoverflow.com/questions/15572753/weeapp-ios-notification-center-widget-location-services-doesnt-save-permission/16452528?noredirect=1#16452528). Now just need to find a way to clear the authorization if the user wants to.

andrewmm commented 11 years ago

"To clear authorization status I'm removing from /var/root/Library/Caches/locationd/clients.plist everything about my application. In your case it's com.apple.springboard Then I'm killing locationd process to apply this changes, otherwise he will ignore them."

andrewmm commented 11 years ago

Handled in 1216ea886b5271fc5f34838b45861a2dd8e0c12a.

Now just need to test for a while to confirm that everything worked.

andrewmm commented 11 years ago

Nope, not quite working yet. Still displays the new alert repeatedly. Need to save the fact that we're authorized in the save file?

andrewmm commented 11 years ago

Resolved in 53f841f85666b3ca7fc380adac59ae6414def957.