How to use the Background Geolocation Plugin to return location every 10 mins

How do I use the Background Geolocation Plugin in such a way that it returns me the current location of the device every 10 mins even if the app is in the background or closed.
Is there a variable that I have to set in the background-geolocation plugin or something?

Here’s the Background Geolocation Plugin:

Thanks in advance!

the plugin author has a vanilla JS example that can help you.

1 Like