Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4541] Android: analytics featureEvent and navEvent do not fire

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-04-08T01:03:19.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-27, Release 1.7.2, Release 1.8.0, Release 3.3.0
ComponentsAndroid
Labelsqe-3.1.1
ReporterJon Alter
AssigneeDon Thorp
Created2011-06-30T18:07:14.000+0000
Updated2014-04-08T01:03:19.000+0000

Description

Ti.Analytics.featureEvent and navEvent do not fire. Step 1: run the code below Step 2: package for distribution Step 3: click the "navEvent.android" and "featureEvent.android" buttons I did the above steps while Chung watched live analytics and confirmed that these events where not appearing on the server.
Titanium.UI.setBackgroundColor('#fff');

// create tab group
var win = Ti.UI.createWindow({
	layout: 'vertical'
});

var testOneButtonA = Ti.UI.createButton({
	title: "featureEvent.android",
	height: 50,
	width: 250,
	top: 20
});
testOneButtonA.addEventListener('click', function(e){
	Ti.Analytics.featureEvent('featureEvent.android');
});

var testTwoButtonA = Ti.UI.createButton({
	title: "navEvent.android",
	height: 50,
	width: 250,
	top: 20
});
testTwoButtonA.addEventListener('click', function(e){
	Ti.Analytics.navEvent('here', 'there', 'navEvent.android');
});

var testOneButtonI = Ti.UI.createButton({
	title: "featureEvent.iphone",
	height: 50,
	width: 250,
	top: 20
});
testOneButtonI.addEventListener('click', function(e){
	Ti.Analytics.featureEvent('featureEvent.iphone');
});

var testTwoButtonI = Ti.UI.createButton({
	title: "navEvent.iphone",
	height: 50,
	width: 250,
	top: 20
});
testTwoButtonI.addEventListener('click', function(e){
	Ti.Analytics.navEvent('here', 'there', 'navEvent.iphone');
});

win.add(testOneButtonA);
win.add(testTwoButtonA);
win.add(testOneButtonI);
win.add(testTwoButtonI);
win.open();

Comments

  1. Don Thorp 2011-07-06

    Analytics are sent immediately ti.enroll}, {{ti.start, and ti.end. Other events are sent when a new event comes in and it's been > 5 minutes since the last attempt to send.
  2. Natalie Huynh 2011-07-08

    Tested with 1.7.2.v20110706211037 on Nexus S 2.3.4, navEvent and FeatureEvent sent, close the application to see the event immediately
  3. Paras Mishra 2013-05-22

    Analytics featureEvent and navEvent do not fire. This is not a regression. Issue occurs since 2.1.4.GA Environment used: 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
  4. Wilson Luu 2014-04-08

    Closing ticket as cannot reproduce. Was able to send featureEvent and navEvent from an Android production app. Tested on: Appcelerator Studio, build: 3.2.3.201403271839 SDK build: 3.2.2.GA CLI: 3.2.3-alpha2 Alloy: 1.3.1 Xcode: 5.1 Devices: Samsung Galaxy S3 (4.3)

JSON Source