[TIMOB-7709] Android: Expose analytics Boolean Property on Ti.App
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-21T13:13:30.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-04, Release 2.0.0 |
Components | Android |
Labels | n/a |
Reporter | Dawson Toth |
Assignee | Dawson Toth |
Created | 2012-02-17T12:26:43.000+0000 |
Updated | 2017-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'));
PR sent: https://github.com/appcelerator/titanium_mobile/pull/1461
Closing ticket due to time passed.