Location permission alert invisible in app; displayed in front of siri

Originator:joshua
Number:rdar://18387550 Date Originated:18 september 2014
Status:Open Resolved:
Product:iOS Product Version:7.1
Classification: Reproducible:Always
 
Summary:
Our app launches with a window set to UIWindowLevelAlert. (It's later faded to another window, but that's long after this process.)

The startup process displays informational text, then triggers a permissions ask for location; on iOS 8 with the new API, and on iOS 7 via startUpdatingLocation.

We receive the applicationDidResignActive, so we know the alert is being displayed. However, it is invisible. 

When quitting the app or switching to e.g. Siri, the alert becomes visible.
Movie attached. Some quick code to paste in to engender the problem below.
Xcode 6.01, iOS 7.1, both simulator and real hardware.

    self.splashScreenWindow = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
    self.splashScreenWindow.windowLevel = UIWindowLevelAlert;
    
    SplashScreenViewController *splashScreenViewController = [[SplashScreenViewController alloc] initWithDelegate:self session:sessionController]; // particulars insignificant
    self.splashScreenWindow.rootViewController = splashScreenViewController;
    [self.splashScreenWindow makeKeyAndVisible];

. . . . . 

later, trigger location request. 
Observe that resignActive is called.

Steps to Reproduce:
With above code creating a key window at UIWindowAlert level:

Hold home button; alert displays over Siri. 
Tap home to switch back; alert disappears. 

Expected Results:
Alert should display in my app, and not outside my app.

Actual Results:
Alert does not display in my app, but does display outside my app.

Version:
Various iOS 7.

Notes:


Configuration:
iphone 5 verizon, iOS 7.1.2; also simulator (iOS 7 versions)

Attachments:
'IMG_1726.MOV' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!