Geolocation in backgruond?

Hi everyone, I need to realize an app that store user journey when he moves from A to B. Now, I know that ionicframework can use GPS, but what happen when my APP go to background ? How can my app continue to store user position ? Is this possible ? Are there plugins (not $600+ please) that I can use ?