Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17878] Apps has last session one month in the future

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterNam Le
AssigneeUnknown
Created2014-10-20T21:30:55.000+0000
Updated2018-02-28T20:04:21.000+0000

Description

This is a spin-off of APPTS-6299. For the TUI Travel Org (100000172), there are Android sessions that last occurred on November 20th, 2014. The first step in the investigation is to see if the session summary and raw events contain a event that has that timestamp (to rule out that it is a bug in the PEM logic). If the data is there, then it's a possible issue with the SDK and it will be moved there for investigation.

Attachments

FileDateSize
Screen Shot 2014-10-20 at 2.31.23 PM.png2014-10-20T21:34:48.000+0000276835

Comments

  1. Isaac Whitfield 2014-10-20

    [~nle] can you be a bit more specific as to when the last session was? Do you have the timestamp reported by PEM? Even better would be the query that Dashboard uses to get this timestamp.
  2. Isaac Whitfield 2014-10-20

    Eh, this should be moved to SDK. I just found a raw event here with a timestamp of March 2015.
       {
               "continent_code": "AS",
               "ts": "2015-03-24T12:40:06.405+0000",
               "area_code": 0,
               "deploytype": "production",
               "data": [
                   {
                       "lvalue": 330,
                       "key": "tz"
                   },
                   {
                       "svalue": "iphone",
                       "key": "os"
                   },
                   {
                       "svalue": "WIFI",
                       "key": "nettype"
                   },
                   {
                       "svalue": "production",
                       "key": "deploytype"
                   },
                   {
                       "svalue": "6.1.255",
                       "key": "app_version"
                   },
                   {
                       "svalue": "7.0.3",
                       "key": "osver"
                   },
                   {
                       "svalue": "3.2.3.GA",
                       "key": "version"
                   },
                   {
                       "svalue": "iphone",
                       "key": "platform"
                   },
                   {
                       "svalue": "iPad4,4",
                       "key": "model"
                   }
               ],
               "ver": "2",
               "type": "ti.start",
               "country_name": "India",
               "city": "",
               "id": "1E8AADB1-6FF9-4358-BB80-F089F04723BD",
               "region_name": "",
               "oid": "100000172",
               "event": "ti.start",
               "longitude": 77,
               "rdu": null,
               "sid": "27E02C3A-DBBB-44AB-B7D3-C096F2195636",
               "country_code": "IN",
               "aguid": "2261737c-bffd-46d3-9940-45a0362643c7",
               "ip_address": "59.165.251.191",
               "arrivalTime": 1413805255327,
               "region_code": "",
               "postal_code": "",
               "seq": 0,
               "latitude": 20,
               "mid": "1B0C4832-AF8A-4754-884F-2251AC795472"
           }
       
    Found via:
       curl -s "http://localhost:9200/oid100000172/_search?pretty=true" -d '{
           "filter" : {
             "match_all" : { }
           },
           "sort": [
             {
               "last": {
                 "order": "desc"
               }
             }
           ],
           "size": 1
       }'
       
       curl -s -i -X GET -H "X-Auth-Token:8ef66f2a-c166-43cb-b5c8-0cfd375362be" "http://pem-next-rest-api.elasticbeanstalk.com:80/rest/event/id/1E8AADB1-6FF9-4358-BB80-F089F04723BD"
       
  3. Nam Le 2014-10-20

    [~ingo] Can we investigate whether this is a bug with the SDK? Could it be a user error, for instance of the app user changes the date on the device to be a future date, when the SDK sends the event, it would use the device's date (which is set to the future)?
  4. Ingo Muschenetz 2014-10-20

    [~nle] It would be difficult for me to investigate without a set of steps to reproduce. Here is the code: https://github.com/appcelerator/aps_sdk/blob/master/ios/support/analytics/APSAnalytics/APSAnalytics.m#L460 Which references: https://github.com/appcelerator/aps_sdk/blob/master/ios/support/analytics/APSAnalytics/APSUtility.m#L200 It appears it uses the current date on the phone.

JSON Source