Unsure if this is a regression as last time analytics was run was SDK 4.0.0.GA.
Steps To Reproduce:
1. Use the attached app.js.
2. Build for android device.
3. Follow the guide here & see the sent events:
https://wiki.appcelerator.org/display/qe/Guide+to+Running+Titanium+Analytics+Locally
4. The app will launch for the first time & you will see enroll & foreground events.
5. Check if you see ti.geo event.
Actual Result:
1. We do not see the ti.geo event.
Expected Result:
1. We should see the ti.geo event.
[~lchoudhary] Ran your code on 3.5.1.GA through 5.1.0.v20151110202023. Behaviour of SDK for Ti.Geo events remain the same and working. Issue seems to be with the test code at Line 5 to line 40 with the
if (Ti.Platform.osname == 'ipad' || Ti.Platform.osname == 'iphone') {
portion. The closing brackets of the condition foriOS
ends after the Ti.Geo code. Hence, Ti.Geo code will never run on Android. When the bracket is moved from line 40 to line 14. It works as expected. Ti.Geo event can be seen from localserver nodejs script. Resolving this issue as invalid.Verified by changing the code. We see geo events.