Run ionic app in the background terminated mode

how to run a service(background services when the app is terminated) in ionic, tried cordova background-mode, background-app but those are worked only when the app is in the background mode not terminated…or else how to get the geo-location when the app is in terminated mode…please if any one know how to do please reply asap …thanks in advance