Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-16783

BlackBerry: Ti.Geolocation.getCurrentPosition working fine but pass different data

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BlackBerry
    • Labels:
    • Environment:

      Mac OS 10.9.1
      Momentics 2 with BB 10.2.0
      CLI: 3.2.1GA
      Alloy: 1.3.1
      Appcelerator Studio, build: 3.2.2.201401231451
      Titanium SDK version 3.2.1GA / 3.3.0.v20140214140905

      Description

      Issue description

      Titanium.Geolocation.getCurrentPosition() working fine, but LocationResults pass to callback function without success, or coords.

      Sample code

      Ti.Geolocation.getCurrentPosition(function(e) {
      	Ti.API.info(JSON.stringify(e));
      });
      

      Result on BlackBerry

      {
      	"accuracy" : 66,
      	"altitude" : null,
      	"altitudeAccuracy" : -1,
      	"direction" : -1,
      	"groundSpeed" : -1,
      	"heading" : 4.068092346191406,
      	"horizontalAccuracy" : 66,
      	"latitude" : 30.15041732788086,
      	"longitude" : 31.39896583557129,
      	"magneticVariation" : 4.068092346191406,
      	"speed" : -1,
      	"timestamp" : 1392587571200,
      	"verticalAccuracy" : -1,
      	"verticalSpeed" : -1
      }
      

      Result on iOS

      Same like http://docs.appcelerator.com/titanium/latest/#!/api/LocationResults)

      {
      	"code" : 0,
      	"type" : "location",
      	"source" : {},
      	"success" : true,
      	"coords" : {
      		"timestamp" : 1392587804475,
      		"altitude" : 0,
      		"speed" : -1,
      		"latitude" : 23,
      		"longitude" : 55,
      		"accuracy" : 5,
      		"altitudeAccuracy" : -1,
      		"heading" : -1
      	}
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                penrique Pedro Enrique (Inactive)
                Reporter:
                hazemkhaled Hazem Khaled
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-18580
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration