Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7709] Android: Expose analytics Boolean Property on Ti.App

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-21T13:13:30.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-04, Release 2.0.0
ComponentsAndroid
Labelsn/a
ReporterDawson Toth
AssigneeDawson Toth
Created2012-02-17T12:26:43.000+0000
Updated2017-03-06T18:26:37.000+0000

Description

Task

Expose "analytics" property on Ti.App so that developers can detect if analytics are enabled or not in the tiapp.xml.

Test

See if the below reflects what is in your tiapp.xml:
alert('Enabled? ' + (Ti.App.analytics ? 'Yes!' : 'No'));

Comments

  1. Dawson Toth 2012-02-17

    PR sent: https://github.com/appcelerator/titanium_mobile/pull/1461
  2. Lee Morris 2017-03-06

    Closing ticket due to time passed.

JSON Source