[TIMOB-19603] Unified application lifecycle callbacks across platforms
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | android, ios, lifecycle |
Reporter | Marcus Ilgner |
Assignee | Unknown |
Created | 2015-02-26T14:22:33.000+0000 |
Updated | 2018-02-28T19:55:09.000+0000 |
Description
As a developer, I want to use the same application lifecycle handlers, regardless of which platform I'm deploying to.
On iOS the application is notified about its lifecycle via "pause", "resume" and "resumed" events from Ti.App.
On Android, one has to to assign handlers to "$.win.activity" or (slightly differently) "Ti.Android.currentActivity".
Since the iOS functionality doesn't have any indication that it's iOS-specific, It would make for much clearer code if Android used the same mechanism.
This would probably be a breaking change but adaptation should be straightforward for any app that already supports iOS.
No comments