Thanks 73Hpilot! That was very interresting...
Did a few more tests, every time walking back and forth outside the house:
(the script simply logs watchPosition responses for those that have not looked at it)
1. Tested an iPad1 running 5.1.1, reload 10+ times and no problems as expected.
2. Closed all apps and all pages on my iPhone 4S running 6.0.1 and rebooted. Worked 3 reloads then I got 3 pos, 1 pos a few more etc. all the time. Each time I closed Safari and re-opened the positions started coming again (this often fixes the problem but not all the time according to my experience)
3. Tested on my girlfriends iPhone 4S running 6.1.2, closed all apps & pages and rebooted. Already on 2:nd reload I only got 1 position, then similar results 1 or a few positions, always restarted after reopening Safari.
Tried turning off wifi, but got exactly the same behaviour.
Example of a typical testresult after page refresh:
2 00:00.431 11 65
1 00:00.181 4 165
0 00:00.709 0 65
...got 3 positions then nothing...
mark00153, tested you page and got exactly the same result as above. Positions stopped as you describe and as I experience above, restarted if I reopened Safari. This was as expected as both our test run very basic code.
So, now to the interresting part: what is different in 73Hpilot and my tests? Here's what I can think of:
* We obviously have different hardware
* We are at different pysical positions meaning different satellites etc. (I am in Sweden)
* I was walking back and forth outdoors, 73Hpilot was indoors (being still?)
anything else?
I tested indoors sitting still and then I could actually refresh the page > 10 times with continous positions (I think I have read that if the GPS chip does not detect enough differences in signals it returns the previous position....?)
73Hpilot, it would be very interresting to hear what results you get if you go outside and walk while doing the tests...?
Anyone else who can try testing? travisdahl?