Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19603] Unified application lifecycle callbacks across platforms

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsandroid, ios, lifecycle
ReporterMarcus Ilgner
AssigneeUnknown
Created2015-02-26T14:22:33.000+0000
Updated2018-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.

Comments

No comments

JSON Source