You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/09 10:25:38 UTC

[GitHub] [cordova-plugin-geolocation] junior-senior edited a comment on issue #221: GPS keeps timing out on iOS

junior-senior edited a comment on issue #221:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/221#issuecomment-775829947


   Interestingly, the console of XCode is this (replaced the app name and the coords output with 'data' as it has my location in it):
   2021-02-09 11:13:47.375746+0100 AppName[1177:498799] Starting Location Watch
   2021-02-09 11:13:47.376153+0100 AppName[1177:498799] Waiting for GPS
   2021-02-09 11:13:47.376511+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:13:47.392079+0100 AppName[1177:498799] THREAD WARNING: ['Geolocation'] took '15.158936' ms. Plugin should use a background thread.
   2021-02-09 11:13:47.413718+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:13:57.420804+0100 AppName[1177:498799] {"code":3,"message":"Position retrieval timed out."}
   2021-02-09 11:13:57.421732+0100 AppName[1177:498799] GPS timed out.
   2021-02-09 11:13:57.422282+0100 AppName[1177:498799] Stopping location watch.
   2021-02-09 11:13:57.432880+0100 AppName[1177:498799] Starting Location Watch
   2021-02-09 11:13:57.433449+0100 AppName[1177:498799] Waiting for GPS
   2021-02-09 11:13:57.434797+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:13:57.470875+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:14:07.477687+0100 AppName[1177:498799] {"code":3,"message":"Position retrieval timed out."}
   2021-02-09 11:14:07.478546+0100 AppName[1177:498799] GPS timed out.
   2021-02-09 11:14:07.479009+0100 AppName[1177:498799] Stopping location watch.
   2021-02-09 11:14:07.483256+0100 AppName[1177:498799] Starting Location Watch
   2021-02-09 11:14:07.483560+0100 AppName[1177:498799] Waiting for GPS
   2021-02-09 11:14:07.484086+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:14:07.497861+0100 AppName[1177:498799] THREAD WARNING: ['Geolocation'] took '10.797852' ms. Plugin should use a background thread.
   2021-02-09 11:14:07.519037+0100 AppName[1177:498799] {"coords": data}
   2021-02-09 11:14:17.524690+0100 AppName[1177:498799] {"code":3,"message":"Position retrieval timed out."}
   2021-02-09 11:14:17.525405+0100 AppName[1177:498799] GPS timed out.
   2021-02-09 11:14:17.525792+0100 AppName[1177:498799] Stopping location watch.
   2021-02-09 11:14:17.535857+0100 AppName[1177:498799] Starting Location Watch
   2021-02-09 11:14:17.536698+0100 AppName[1177:498799] Waiting for GPS
   
   It seems to get the position fine twice and then on the third attempt, hit a time out. This is the same output with the CDVLocation.m distanceFilter as None or 5.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org