http://docs.appcelerator.com/titanium/3.0/#!/api/Titanium.Geolocation
Constants
- ACCURACY_BEST R O
- ACCURACY_BEST_FOR_NAVIGATION R O
- ACCURACY_HIGH R O
- ACCURACY_HUNDRED_METERS R O
- ACCURACY_KILOMETER R O
- ACCURACY_LOW R O
- ACCURACY_NEAREST_TEN_METERS R O
- ACCURACY_THREE_KILOMETERS R O
- ACTIVITYTYPE_AUTOMOTIVE_NAVIGATION R O
- ACTIVITYTYPE_FITNESS R O
- ACTIVITYTYPE_OTHER R O
- ACTIVITYTYPE_OTHER_NAVIGATION R O
- AUTHORIZATION_ALWAYS R O
- AUTHORIZATION_AUTHORIZED R O
- AUTHORIZATION_DENIED R O
- AUTHORIZATION_RESTRICTED R O
- AUTHORIZATION_UNKNOWN R O
- AUTHORIZATION_WHEN_IN_USE R O
- ERROR_DENIED R O
- ERROR_HEADING_FAILURE R O
- ERROR_LOCATION_UNKNOWN R O
- ERROR_NETWORK R O
- ERROR_REGION_MONITORING_DELAYED R O
- ERROR_REGION_MONITORING_DENIED R O
- ERROR_REGION_MONITORING_FAILURE R O
- ERROR_TIMEOUT R O
- PROVIDER_GPS R O
- PROVIDER_NETWORK R O
- PROVIDER_PASSIVE R O
Properties
- accuracy
- activityType
- distanceFilter
- hasCompass R O
- headingFilter
- lastGeolocation R O
- locationServicesAuthorization
- locationServicesEnabled R O
- pauseLocationUpdateAutomatically
- purpose
- showCalibration
- trackSignificantLocationChange
Methods
- forwardGeocoder
- getAccuracy
- getActivityType
- getCurrentHeading
- getCurrentPosition
- getDistanceFilter
- getHasCompass
- getHeadingFilter
- getLastGeolocation
- getLocationServicesAuthorization
- getLocationServicesEnabled
- getPauseLocationUpdateAutomatically
- getPurpose
- getShowCalibration
- getTrackSignificantLocationChange
- reverseGeocoder
- setAccuracy
- setActivityType
- setDistanceFilter
- setHeadingFilter
- setLocationServicesAuthorization
- setPauseLocationUpdateAutomatically
- setPurpose
- setShowCalibration
- setTrackSignificantLocationChange
Events
- authorization
- calibration
- heading
- location
- locationupdatepaused
- locationupdateresumed
All child issues have been resolved and the docs say its done as well, but is it working? https://community.appcelerator.com/topic/869/geolocation-services-in-windows-phone/2
[~fokkezb] The user's issue likely had to do with enabling the geolocation capability in the appx manifest, which is now possible through adding Capability tags in the windows portion of the tiapp.xml.
@Chris: How to add Capability tag into tiapp.xml? Can you please post example code with working GPS loacation? Thank you.
[~max87] You can add capabilities to the tiapp.xml under the windows tag:
https://appcelerator.github.io/appc-docs/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-Addcapabilities
Thank you guys, I added above code into tiapp.xml, it shows error mark, that windows tag is unexpected, but when I run app and ask for gps, gps icon shows up in status bar and successfully returns location. Thank you for your help.
[~bimmel] the information in these comments are undocumented. The Windows SDK has a lot of undocumented APIs. We should give that a boost before the 5.3 release since that'll be all about Windows.
Closing ticket as fixed.