Geolocation problem

Hi everyone when ever im trying to use the cordova-plugin-background-mode plugin to get the geo location it never gets the location it only work when the app is in the foreground