[TIMOB-4541] Android: analytics featureEvent and navEvent do not fire
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-04-08T01:03:19.000+0000 |
Affected Version/s | Release 1.7.0 |
Fix Version/s | Sprint 2011-27, Release 1.7.2, Release 1.8.0, Release 3.3.0 |
Components | Android |
Labels | qe-3.1.1 |
Reporter | Jon Alter |
Assignee | Don Thorp |
Created | 2011-06-30T18:07:14.000+0000 |
Updated | 2014-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();
Analytics are sent immediately
ti.enroll}, {{ti.start
, andti.end
. Other events are sent when a new event comes in and it's been > 5 minutes since the last attempt to send.Tested with 1.7.2.v20110706211037 on Nexus S 2.3.4, navEvent and FeatureEvent sent, close the application to see the event immediately
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
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)