# Geolocation timeout problem

**URL:** <https://forum.ionicframework.com/t/geolocation-timeout-problem/146458>\
**Category:** Ionic Native\
**Created:** [November 1, 2018, 8:11pm UTC](https://forum.ionicframework.com/t/geolocation-timeout-problem/146458 "2018-11-01T20:11:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danishkhanmdk1995](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danishkhanmdk1995/32/122145_2.png) [@danishkhanmdk1995](https://forum.ionicframework.com/u/danishkhanmdk1995)\
**Post date:** [November 1, 2018, 8:11pm UTC](https://forum.ionicframework.com/t/geolocation-timeout-problem/146458/1 "2018-11-01T20:11:35Z")

</div>

Hi. I am using ionic native geolocation plugin but i am facing an issue. i want to get the lat long after some time using this plugin but it shows the lat long only first time when loading the page timeout option is not working. I am using the following code. Please help me , Thanks in advance.

**Code**  
var options = {  
timeout: 5000,  
maximumAge: 0,  
enableHighAccuracy: true  
};  
this.geolocation.getCurrentPosition(options).then((resp) =\> {  
console.log(resp);  
}, (error) =\> {  
console.log(error);  
}).catch((err) =\> {  
});

---

<div class="post-metadata">

**Author:** ![danishkhanmdk1995](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/danishkhanmdk1995/32/122145_2.png) [@danishkhanmdk1995](https://forum.ionicframework.com/u/danishkhanmdk1995)\
**Post date:** [November 2, 2018, 5:18pm UTC](https://forum.ionicframework.com/t/geolocation-timeout-problem/146458/2 "2018-11-02T17:18:44Z")

</div>

Is there any one to help me to resolve this issue

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:11pm UTC](https://forum.ionicframework.com/t/geolocation-timeout-problem/146458/3 "2021-07-19T21:11:48Z")

</div>

Closed on July 19, 2021, 9:11pm UTC


