Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23881] Android: Analytics not enabled when root activity is not launched

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-09-15T03:23:52.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2016-09-09T08:30:20.000+0000
Updated2016-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

FileDateSize
aps_test.zip2016-09-14T05:44:32.000+00009773876

Comments

  1. Gary Mathews 2016-09-11

    master: https://github.com/appcelerator/titanium_mobile/pull/8347
  2. Hans Knöchel 2016-09-12

    [~gmathews] Can you add a demo-code and testing-steps? Then I can help reviewing it.
  3. Gary Mathews 2016-09-14

    [~hansknoechel] Apologies, this was part of TIMOB-20502. I've added a test case.
  4. Ashraf Abu 2016-09-15

    Able to see Analytics. Master PR merged.
  5. Lokesh Choudhary 2016-12-02

    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

JSON Source