rolinger commented on issue #257: URL: https://github.com/apache/cordova-plugin-geolocation/issues/257#issuecomment-2573553048
Ok, so to clarify, there is nothing I can specifically do in my App that would eliminate this error? It really is an issue inside of `cordova-plugin-geolocation`? This entire upgrade effort and see the above error still happen triggered me into doing some extensive testing. My app requires GPS. When my app initializes I call a function every 1 second for the first 15 seconds, then every 3 seconds up to the first 45 seconds and then every 10 seconds after that. GPS usually takes about 30 to 45 seconds to truly get the most accurate user location...then after the 1st 45 seconds I am updating the users position (in the app) about every 10 seconds. I am using this function to do this: ``` function setupWatch() { // global var here so it can be cleared on logout (or whenever). // call every second for first 15 seconds; watchCount < 15 // then call for every 3 seconds for til 45 seconds // after 45 seconds, call once per 10 seconds if (watchCount > 0) { getPosition(); } if (watchCount == 15) { watchDelay = 3000 ; } else if (watchCount == 25) { watchDelay = 10000 ; // after 45 seconds, run every 10 seconds } watchCount++ ; watchValue = setTimeout(setupWatch,watchDelay) } ``` getPosition() calls the geolocation plugin with: `watchID = navigator.geolocation.getCurrentPosition(onSuccess, onError, options);` Is there a better method to track the user location changes other than having to call getCurrentPosition() every 10 seconds? I would really like to get rid of this error I am getting in Xcode/iOS and am wondering if a better method would help me eliminate the error. -- 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org