Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8133] iOS: Ti.Analytics.featureEvent not sending data

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-03-25T21:45:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterJunaid Younus
AssigneeNeeraj Gupta
Created2012-03-20T16:18:51.000+0000
Updated2012-03-25T21:45:47.000+0000

Description

*Code*
var win = Ti.UI.createWindow();

var button1 = Ti.UI.createButton({
	title: 'Event 1',
	left: 50,
	top: 200,
	width: 100,
	height: 50
});

var button2 = Ti.UI.createButton({
	title: 'Event 2',
	left: 180,
	top: 200,
	width: 100,
	height: 50
});

button1.addEventListener('click', function(e)
{
	Ti.Analytics.featureEvent('app.feature.button1',{ title:'button1 has been pressed.' });
});

button2.addEventListener('click', function(e)
{
	Ti.Analytics.featureEvent('app.feature.button2',{ title:'button2 has been pressed.' });
});

win.add(button1);
win.add(button2);
win.open();

*Expected behavior* When you click on either of the buttons, it should sent analytics data to our server. *Actual behavior* When you click on either of the buttons, it indeed does print out the following:
[INFO] Analytics->featureEvent with event: app.feature.button1, data: {
    title = "button1 has been pressed.";
}
However the data is not being captured by our end. I worked with Chung Liu to figure out what the issue is, and we have concluded that this seems to be issue with the platform not sending Ti.Analytics.featureEvent events. He told me to open a TIMOB JIRA ticket about this. *Notes* -This only seems to be affected by iOS, Android seems to work fine.

Comments

  1. Junaid Younus 2012-03-25

    Closing ticket, until I get more details from customer regarding this issue.

JSON Source