Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2138] "Heavyweight" windows interfering with GPS (android)

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-08T19:50:05.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, geolocation, gps
ReporterAnthony Webb
AssigneeIngo Muschenetz
Created2011-04-15T03:11:39.000+0000
Updated2017-06-08T19:50:05.000+0000

Description

I have a simple app I wrote to debug another gps issue here:
http://developer.appcelerator.com/question/71611/gps-cuts-out-sporadically-android"> http://developer.appcelerator.com/question/71611/gps-cuts-out-spora...

On further exploration if I make that window a "heavyweight" window, then the GPS will never turn on and activate. Here is the original code http://pastie.org/1233923">http://pastie.org/1233923 to see the problem add "navBarHidden: false" to the window properties and run again, and the GPS will never activate or fire.

Note this is on my motorola droid, running 2.2. Running 1.4.1.1 on the titanium side.

Comments

  1. Anthony Webb 2011-04-15

    This was solved by moving all GPS code into a separate js file, and assigning the URL to a heavyweight window. Might be worth exploring how best to let newbs (like me) know that putting that stuff in your app.js is not kosher.

  2. Lee Morris 2017-06-08

    Closing ticket due to time passed and lack of input or progress in the past few years.

JSON Source