What is the best solution to store device location frequently

Hello guys,

What is the best solution to store the device location frequently (let’s say every 30 mins). Which one is better to use, Geolocation or Background Geolocation. As I can see, in the background location can be configured the interval for the tracking, and in geolocation plugin I’ll need to make timer for that.

Thank you.