Back to All

Stopping Background Location from outside of the app

Hi, I would like to use the backgroundLocation native plugin for my driver app but I am running into an issue with stopping the backgroundLocation service. If a driver goes inactive while they are off-app I would like to be able to stop their location pings, however, because they are no longer in the app it is impossible to send the javascript bridge command "median.backgroundLocation.stop();". Is there some kind of workaround for this or is the only solution to direct the user back to the app?
Thanks, Kaya.