views:

48

answers:

0

I have a weird bug. It seems like a platform issue but since it is only happening in my app, I guess it is not (:

I can reproduce this about 50% of the time.

When I call [locationManager startUpdatingLocation] and location services are DISABLED, the user is greeted with an alert box asking if they would like to go to the phone settings, or Cancel. The app simultaneously receives a UIApplicationWillResignActiveNotification. Fine.

Upon selecting the Settings button, the user is taken to the Location Settings page. If you then proceed to double-tap the home button and return to the application without changing anything, the application does not resume but instead presents a black screen and resets the device(!). The application does not receive the UIApplicationDidBecomeActiveNotification.

Should I be doing something after the UIApplicationWillResignActiveNotification? I'm a bit stuck because control is taken from my app after calling startUpdatingLocation and is never handed back to it, at least as far as I can tell.

I am about to investigate if ANY other notifications are posted when I attempt to switch back to the app.

Does anyone have any suggestions?

Oh, and the I get these lines in the console when the app attempts to resume:

`Wed Sep  8 12:27:13 Sams-iPhone CommCenter[33] <Notice>: com.apple.Preferences is being suspended, invalidating mach ports.`
`Wed Sep  8 12:28:11 Sams-iPhone kernel[0] <Debug>: ttyioss1000002: enqueueData rtn (e00002d7)`