Titanium

[TIMOB-2395] Android: KS Geolocation always says "geo turned off" and location updates never occur

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:59.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M02
ComponentsAndroid
Labelsandroid, android_refactor, defect, regression, rplist
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:18:34.000+0000
Updated2011-04-17T01:58:59.000+0000

Description

See also helpdesk http://developer.appcelerator.com/helpdesk/view/56661">http://developer.appcelerator.com/helpdesk/view/56661.

In general, geolocation does not seem to work at all in 1.5 (master).

Comments

  1. Bill Dawson 2011-04-15

    Problem appears to be ....

    • Top-level modules load up when app loads, meaning Geolocation as well.
    • When Geolocation loads up, it sets TiLocation instance.
    • When TiLocation loads, it creates the locationProvider.
    • Shortly thereafter, however, the RootActivity pauses. Geolocation instance has listened for this, and tells TiLocation instance to pause.
    • TiLocation's reaction to pausing is to nullify the locationProvider.
    • Because Geolocation is a module, it is a singleton -- all attempts to use it after this will get this TiLocation that has the null locationProvider.

    I can't find any equivalent of @ContextSpecific that works in 1.5 (I see the @Kroll.module annotation has that as an argument, but it doesn't do anything yet.)

  2. Bill Dawson 2011-04-15

    (from [559ea0c36a91fa3c101f518a9a19ec16ea002915]) [#2395 state:fixed-in-qa] Allow locationManager to be re-instantiated dynamically. https://github.com/appcelerator/titanium_mobile/commit/559ea0c36a91fa3c101f518a9a19ec16ea002915"> https://github.com/appcelerator/titanium_mobile/commit/559ea0c36a91...

  3. Bill Dawson 2011-04-15

    (from [518a865fc0b5d5aa203a49d87410710c3d5f81eb]) [#2395 state:fixed-in-qa] Check for null in getCurrentPosition https://github.com/appcelerator/titanium_mobile/commit/518a865fc0b5d5aa203a49d87410710c3d5f81eb"> https://github.com/appcelerator/titanium_mobile/commit/518a865fc0b5...

  4. Bill Dawson 2011-04-15

    (from [30bb89f9c9f498bcce03d64c21940565273529ad]) [#2395] Unit test checking NPE in getCurrentPosition https://github.com/appcelerator/titanium_mobile/commit/30bb89f9c9f498bcce03d64c21940565273529ad"> https://github.com/appcelerator/titanium_mobile/commit/30bb89f9c9f4...

  5. Thomas Huelbert 2011-04-15

    new bug in for updated location, closing against 1.5.0.91838a G2 (2.2), Droid1 (2.2)

JSON Source