Re: Delays in awaking iOS app
Re: Delays in awaking iOS app
- Subject: Re: Delays in awaking iOS app
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 30 Jan 2014 07:00:07 +0700
On 30 Jan 2014, at 04:05, Rick Mann <email@hidden> wrote:
> I've seen behaviors like this with other apps, i.e. the Google Hangouts app. The keyboard will be active from a chat, and I'll leave the app. Then I'll get a notification that a message came in, go to the app, and there's some period of time before the keyboard becomes responsive.
>
> I think I only see this in iOS 7. On 6.1, it's much faster, but I'd be curious if you see the same difference in your tests.
I do not have any device with iOS 6. But I am absolutely certain that had I seen this delay in iOS 6, I would have investigated it (as it is so annoying); which means that there was no noticeable delay before iOS 7.
>
> On Jan 29, 2014, at 07:02 , Gerriet M. Denkmann <email@hidden> wrote:
>
>>
>> I have an app with a button.
>> I start the app, then put the iPhone to sleep.
>> I wake the phone up and press the button repeatedly, until something happens.
>>
>> There is an NSLog() in applicationWillEnterForeground: and in the action method of the button.
>> The time difference between these two is 1.1 ... 1.4 seconds.
>>
>> Did the same with Time Profiler in Instruments: 1.357 seconds elapsed time, Running Time 0.044 sec.
>> That is: my app was doing nothing for about 1.3 seconds.
>>
>> This is really annoying: one wakes up the phone, the app looks responsive, so one taps the button - and nothing happens.
>> One has to wait a second, tap the button again - and then it works.
>>
>> How can I find out what is going on?
>> How to avoid this?
>>
>> Gerriet.
>>
>> iOS 7.0.4
>>
>> P.S. Made a new Single View Application (which has nothing except a Done button in a Toolbar at the bottom) and did run it on iPhone 4s:
>>
>> 2014-01-29 21:52:55.540 TestRestart[624:60b] -[T1RAppDelegate applicationWillEnterForeground:]
>> 2014-01-29 21:52:55.552 TestRestart[624:60b] -[T1RAppDelegate applicationDidBecomeActive:]
>> 2014-01-29 21:52:56.949 TestRestart[624:60b] -[T1RViewController donePressed:]
>> 2014-01-29 21:52:57.157 TestRestart[624:60b] -[T1RViewController donePressed:]
>> 2014-01-29 21:52:57.365 TestRestart[624:60b] -[T1RViewController donePressed:]
>> 2014-01-29 21:52:57.557 TestRestart[624:60b] -[T1RViewController donePressed:]
>>
>> Again a delay of 1.397 beween applicationDidBecomeActive and the first reaction to my button.
>>
>>
>>
>>
>> _______________________________________________
>>
>> 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
>
>
> --
> Rick
>
>
>
_______________________________________________
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