Background Running Location Plugin for Unity

The requirement is that it can run in the background, which Unity naturally doesn’t do.
I want to integrate Lightship SDK.
Lightship has all the mapping solutions, and an easy way to draw routes in there if we have the GPS coordinates. Battery consumption is also a concern, so if you have any suggestions based on your experience, please let us know.
A unity project which has lightship maps SDK, and now needs to be able to log GPS coordinates when in the background, similar to how a run app like Strava would do.
GPS logging needs to be able to run as a background process like strava, and them it will render the map at the end of the service with the given data.
The job is to create the background process (that logs even if the screen is off) and saves it to be used later. Battery optimization is a requirement too.

Is there any native plugin available for this for both Android and iOS?