Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-13952

Android: analytics timedEvent does not fire

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 3.1.1
    • Fix Version/s: Backlog
    • Component/s: Android
    • Labels:
    • Environment:

      Device : Google Nexus 7, Android Version: 4.1
      SDK: 3.1.1.v20130521153706
      CLI version : 3.1.0
      OS : MAC OSX 10.7.5
      Appcelerator Studio, build: 3.1.2.201305212422
      XCode : 4.5.1

      Description

      Android: analytics timedEvent does not fire.

      This is not a regression. Issue occurs since 2.1.4.GA

      Steps to reproduce:
      1. Run the app.

      Titanium.UI.setBackgroundColor('#fff');
       
      // create tab group
      var win = Ti.UI.createWindow({
      layout: 'vertical'
      });
       
      var startDate = new Date();
       
      //Testing the Ti.Analytics.featureEvent
      var testOneButton = Ti.UI.createButton({
      title: "featureEvent",
      height: 50,
      width: 250,
      top: 20
      });
      testOneButton.addEventListener('click', function(e){
      Ti.Analytics.featureEvent('featureEvent.testButton');
      });
       
      //Testing the Ti.Analytics.navEvent
      var testTwoButton = Ti.UI.createButton({
      title: "navEvent",
      height: 50,
      width: 250,
      top: 20
      });
      testTwoButton.addEventListener('click', function(e){
      Ti.Analytics.navEvent('here', 'there', 'navEvent.testButton');
      });
       
      //Testing the Ti.Analytics.settingsEvent
      var testThreeButton = Ti.UI.createButton({
      title: "settingsEvent",
      height: 50,
      width: 250,
      top: 20
      });
      testThreeButton.addEventListener('click', function(e){
      Ti.Analytics.settingsEvent('settingsEvent.testButton');
      });
       
       
      //Testing the Ti.Analytics.timedEvent
      var testFourButton = Ti.UI.createButton({
      title: "timedEvent",
      height: 50,
      width: 250,
      top: 20
      });
      testFourButton.addEventListener('click', function(e){
      	var stopDate = new Date();
      	var duration = stopDate - startDate;
      	Ti.Analytics.timedEvent('timedEvent.testButton',startDate, stopDate, duration);
      });
       
       
      //Testing the Ti.Analytics.userEvent
      var testFiveButton = Ti.UI.createButton({
      title: "userEvent",
      height: 50,
      width: 250,
      top: 20
      });
      testFiveButton.addEventListener('click', function(e){
      Ti.Analytics.userEvent('userEvent.testButton');
      });
       
      win.add(testOneButton);
      win.add(testTwoButton);
      win.add(testThreeButton);
      win.add(testFourButton);
      win.add(testFiveButton);
      win.open();
       

      2. Press the timedEvent button
      3. Check logs
      4. Quit application check logs

      Expected:
      After Step 3: nothing is logged
      After Step4: "event":"timedEvent.testButton","data":

      {"start":"<start_time>","data":[],"event":"timedEvent.testButton","stop":"<stop_time>","duration":"<stop_time-start_time>"}

      ,"

      Actual :
      no logs appear.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                pmishra Paras Mishra
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-16553
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration