Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18339] Android: CLI - After killing and relaunching an app on device, console logs will not appear again

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.1, Release 3.5.0
Fix Version/sn/a
ComponentsAndroid, CLI
Labelscb-tooling, qe-3.5.0
ReporterWilson Luu
AssigneePraveen Innamuri
Created2015-01-07T20:03:03.000+0000
Updated2020-01-30T09:38:30.000+0000

Description

*Details:* On Android, if you kill and relaunch the same app *on device*, console logs will not appear again. *Note:* * This is *not a regression* since this occurs with SDK 3.4.1.GA * This *does not occur* on iOS, however, the expected behavior for iOS is debatable. After you kill and relaunch the same app on an *iOS device*, console logs will still appear, however, peculiar error logs appear first; see ios_logs.txt. * For Android, this "seems expected" since a new pid is generated after killing the app and the CLI does not track the new pid when the app relaunches. However, this does not achieve parity with iOS behavior; see android_logs.txt for what is printed out once the app is killed *Steps to reproduce:* 1. Create a default Titanium app from CLI 2. To track console logs, make sure the following pieces of code are added:
...
win1.addEventListener('focus', function() {
    Ti.API.info('####### focused on win1');
});
...
win2.addEventListener('focus', function() {
    Ti.API.info('####### focused on win2');
});
...
tabGroup.open();
3. From CLI, install app to an Android device 4. Once the app is launched, switch between the tabs and verify logs are printed out 5. Next, kill the app either via Task Manager or holding home button and swiping 6. Relaunch app and switch between the tabs *Actual:* Logs are not printed anymore to terminal. *Expected:* Logs should be printed to terminal again???

Attachments

FileDateSize
android_logs.txt2015-01-07T20:03:40.000+0000352
ios_logs.txt2015-01-07T20:03:40.000+00001276

Comments

No comments

JSON Source