[TIMOB-11573] Ti API: iOS 'focus' event on window is not called after resume
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-02-12T20:05:21.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 04 API, 2013 Sprint 04 |
Components | TiAPI |
Labels | api, parity |
Reporter | Arthur Evans |
Assignee | Vishal Duggal |
Created | 2012-10-24T23:56:24.000+0000 |
Updated | 2013-03-27T22:29:09.000+0000 |
Description
This was filed as a doc bug (see linked issue) with the justification that this was the expected behavior on iOS. However, the Android behavior does not match--blur and focus are fired on the window when the app is paused and restarted.
Before we address this in docs, I think we need an architectural decision on the correct behavior.
iOS does not fire focus on resume because it never fires blur on pause. This is an event parity problem and should be discussed and addressed as part of TIMOB-10373
On Android window state events are tied to activity/app lifecycle but on iOS they are not. When addressing TIMOB-10373 we should discuss if iOS should follow similar behavior
On iOS the focus blur events are tied to the view(Will/Did)Appear and view(Will/Did)Disappear methods. When the app is backgrounded and resumed these methods are not called and hence no blur/focus events are fired.