Using GPS to track a person mascot

Hi, I’m very new to Ionic and looking to add a tracking feature to an app. The users of the app should be able to visit a page within the app can see the current location of where the mascot is and where it is moving to. Is this possible? The page would obviously have maps integrated and you can see the icon pin of where the mascot is.

Any suggestions or pointers would be greatly appreciated.

What do you mean by that?

From the mascots device:
Keep updating mascots position every minute.
Use cordova background geolocation plugin to fetch mascots position even when the app is in the background.

For the device thats tracking mascots movement:
Configure server sent events or keep polling the server to get continuos lat and long.
Keep updating the marker on the map with lat and long provided in the previous step from the server.

What I mean by mascot, it could be a person instead that I would like to track.

Thank you siddhartha, that is very helpful. I will try to look into using cordova background geolocation.