[TIMOB-2138] "Heavyweight" windows interfering with GPS (android)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-08T19:50:05.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, geolocation, gps |
Reporter | Anthony Webb |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:11:39.000+0000 |
Updated | 2017-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.
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.
Closing ticket due to time passed and lack of input or progress in the past few years.