Sitata / titanium-google-analytics

Google analytics for Appcelerator Titanium
MIT License
92 stars 47 forks source link

Android is not sending data, but iOS does #67

Closed abdielou closed 4 years ago

abdielou commented 7 years ago

I'm currently getting the data sent by the iOS version of my app. The Android version sends nothing.

This is how I'm initializing the code:

// Google Analytics
var GA = require("analytics.google");
if(OS_ANDROID) GA.dispatchInterval = 2;
else if(OS_IOS) GA.dispatchInterval = 120;
Alloy.Globals.tracker = GA.getTracker(Alloy.CFG.GoogleAnalyticsId);

Any ideas on why this would not work with Android?

I'm testing on a real device for Android and the simulator for iOS.