Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19923] Android: Ti.geo events are not seen after app install

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2015-11-13T03:35:22.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.1.0
ComponentsAndroid
Labelsqe-5.1.0
ReporterLokesh Choudhary
AssigneeChee Kiat Ng
Created2015-11-12T01:16:46.000+0000
Updated2015-11-16T18:57:49.000+0000

Description

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.

Attachments

FileDateSize
app.js2015-11-12T01:15:31.000+00005065

Comments

  1. Ashraf Abu 2015-11-13

    [~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 for iOS 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.
  2. Lokesh Choudhary 2015-11-16

    Verified by changing the code. We see geo events.

JSON Source