Re: My app only shows a black screen in the recent apps list
Re: My app only shows a black screen in the recent apps list
- Subject: Re: My app only shows a black screen in the recent apps list
- From: David Duncan <email@hidden>
- Date: Fri, 30 Dec 2016 11:34:28 -0800
> On Dec 27, 2016, at 3:52 AM, Andreas Falkenhahn <email@hidden> wrote:
>
> On 25.12.2016 at 16:57 David Duncan wrote:
>
>>> On Dec 23, 2016, at 9:05 AM, Andreas Falkenhahn <email@hidden> wrote:
>
>>> Further examinations have shown that the issue might be related to the
>>> fact that my app has the "UIApplicationExitsOnSuspend" flag set to YES.
>>> When removing this flag, it seems to work correctly. When activating it
>>> again, however, iOS shows the image from the last run of the app with
>>> "UIApplicationExitsOnSuspend" set to NO. Really does smell like an iOS
>>> bug.
>
>> This is actually probably the expected behavior in that case, and
>> all due to the fact that the app *exits* when you leave it.
>
> I'm not sure. As I said, it also happens quite often that the image alternates
> when just browsing through the recent apps list. Sometimes the launch image is
> shown, sometimes a screenshot - but without me leaving the recent apps list!
This is rather the nature of undefined behavior though – when in the task switcher we try to update your image, but may suspend the application at some point. But since you aren’t necessarily in the background, we may not *kill* the application. The application being unable to respond in time for a snapshot is what may result in the snapshot behaving oddly, and a suspended application may not respond in a timely fashion.
> This is really weird behaviour. I close my app, wait 10 seconds so that it
> is really gone and then open the recent apps list and browse through it:
> Sometimes the launch image is shown for my app, sometimes a screenshot,
> in one and the same instance of the recent apps list, i.e. without exiting
> the recent apps list and reopening it again. That doesn't really make sense to me…
Honestly, just remove UIApplicationExistsOnSuspend. Its simply not a behavior that is expected of modern iOS applications.
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden