Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17233] Android: Analytics - Analytics are still being sent if you change the base URL to a non-supported endpoint

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2014-06-28T03:23:11.000+0000
Affected Version/sRelease 3.4.0
Fix Version/sRelease 3.3.0, Release 3.4.0
ComponentsAndroid
Labelsmodule_analytics, qe-3.3.0, qe-manualtest
ReporterWilson Luu
AssigneeAllen Yeung
Created2014-06-27T17:51:26.000+0000
Updated2014-08-07T20:10:12.000+0000

Description

*Details:* Analytics are still being sent if you change the base URL to a non-supported endpoint e.g. https://www.google.com/ *Note:* Was *not* able to reproduce the issue on iOS i.e. if I change the base URL to a non-supported endpoint, then analytics payload are not sent. *Steps to reproduce:* 1. Import bob.zip into Eclipse; this project already has <meta-data android:name="APSAnalyticsBaseURL" android:value="https://www.google.com/"/> in the manifest file and is the default Android project 2. Install app onto device that is pointing to staging 3. Go to staging and verify payloads with the guid 40060543-0d1b-4738-bcf7-20002a932a50 *Actual:* Analytic events are still being sent (see payload.txt attachment). *Expected:* Analytic events should not be sent.

Comments

  1. Allen Yeung 2014-06-27

    master: https://github.com/appcelerator/titanium_mobile/pull/5863 3_3_X: https://github.com/appcelerator/titanium_mobile/pull/5864
  2. Allen Yeung 2014-07-07

    You can add the following to your tiapp.xml:
           <android xmlns:android="http://schemas.android.com/apk/res/android">
               <manifest>
                   <application android:debuggable="true">
                       <meta-data android:name="APSAnalyticsBaseURL" android:value="https://www.google.com/"/>
                   </application>
               </manifest>
           </android>
       
  3. Lokesh Choudhary 2014-07-08

    Verified the fix. Changing the base URL to a non supported endpoint does not send any analytics event. Closing. Environment: Appc Studio : 3.3.0.201407031747 Ti SDK : 3.3.0.v20140708132513 Mac OSX : 10.8.5 Alloy : 1.4.0-rc4 CLI - 3.3.0-rc4 Code Processor: 1.1.1 Nexus 5 - android 4.4

JSON Source