42
Views
4
Comments
[Mobile Background Location Plugin] How to requesting gps location in certain time interval in IOS?
Question
background-location-plugin
Mobile icon
Forge asset by Izam Basiron
Application Type
Mobile

Hi,

Is there any way to set time interval for requesting gps location in ios. There is interval property in configuration but seems only work on android.. 

Thanks.

2021-09-10 14-03-53
Salman Ansari

I am not sure we have such type of any action in this component but you can try to call using jquery for call GPS method to get the data using SetTimeout jquery or setInterval javascript function 

UserImage.jpg
Horace Hung

Thanks, but i think setinterval function won't work when the screen is close? 

2021-09-10 14-03-53
Salman Ansari

If you want to call it continuously then you can add this into the module level (use SetTimeout in module level Jquery code)

UserImage.jpg
Horace Hung

But setTimeout is not working when the screen is close. Any other way to call the functions on background regularly?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.