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 2022/06/18 18:25:40 UTC

[GitHub] [cordova-plugin-geolocation] ImAbhishekTomar commented on issue #120: When getting location does'nt return anything or return empty error with a timeout (Android Oreo)

ImAbhishekTomar commented on issue #120:
URL: https://github.com/apache/cordova-plugin-geolocation/issues/120#issuecomment-1159532695

   same issue foe me can someone please help. 
   
   ```
   getCurrentGeoPosition = async (): Promise<Geoposition> => {
       try {
         const options: GeolocationOptions = {
           timeout: 30000,
           maximumAge: 0,
           enableHighAccuracy: true,
         };
         await this.geolocation
           .getCurrentPosition(options)
           .then((position) => Promise.resolve(position))
           .catch((error) => Promise.reject(error));
       } catch (error) {
         console.log(error.message);
         return Promise.resolve(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-unsubscribe@cordova.apache.org

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