kumo01GitHub commented on issue #285:
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/285#issuecomment-2508962957

   Thank you for your kind reply. For workaround, iOS implementation (measure 
timeout in JavaScript) can be solution?:
   
   example for getCurrentPosition: 
   1. Start measuring timeout in JavaScript
   2. getPermission
   3. Override success callback to check timeout. If already timeout, ignore 
response (I don't know if this step is necessary.)
   4. The permission is granted, start navigator.geolocation.getCurrentPosition
   5. return timeout error if time out while processing above steps
   
   I think that measurement timeout in JS should be workaround for Android. 
There are 2 timeouts that generated in step 1 and passed in step 4, but step 5 
uses only step 1 timeout because step 1 must be timeout before step 4. This is 
not comfortable to  read code.


-- 
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

Reply via email to