[TIMOB-23881] Android: Analytics not enabled when root activity is not launched
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-15T03:23:52.000+0000 |
Affected Version/s | Release 5.4.0 |
Fix Version/s | Release 6.1.0 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Gary Mathews |
Created | 2016-09-09T08:30:20.000+0000 |
Updated | 2016-12-02T23:09:51.000+0000 |
Description
Analytics is not enabled when an intent launches a secondary activity if the app is not already running. Analytics is currently enabled by the root activity, launching a secondary activity bypasses analytics.
*STEPS*
1. Use the aps_test.zip alloy application to compile an alloy app.
2. Run the app and click the button, a shortcut on the home screen should appear.
3. Terminate the app from the app manager, make sure the app is not running.
3. Click the shortcut, you should see a grey screen, monitor the logs to see if _APS Service_ starts. (NOTE: This may take 30 seconds to start)
*Expected Result*
- APSAnalyticsService: Analytics Service Started
*Actual Result*
- APS Service does not start
Attachments
File | Date | Size |
aps_test.zip | 2016-09-14T05:44:32.000+0000 | 9773876 |
master: https://github.com/appcelerator/titanium_mobile/pull/8347
[~gmathews] Can you add a demo-code and testing-steps? Then I can help reviewing it.
[~hansknoechel] Apologies, this was part of TIMOB-20502. I've added a test case.
Able to see Analytics. Master PR merged.
Verified the fix.
APSAnalyticsService: Analytics Service Started
is seen. Closing. Appc Studio : 4.8.1.201611291132 SDK Version : 6.1.0.v20161202104721 Mac OS Version : 10.12 Xcode Version : Xcode 8.1 Build version 8B62 Appc CLI AND Appc NPM : {"NPM":"4.2.9-1","CLI":"6.1.0-302"} Ti CLI : 5.0.11 Alloy : 1.9.4 Node : v4.6.0 Device: running 7.1Pixel