Watchposition code location

Where should I put the watchposition code from http://ngcordova.com/docs/ ,
inside services or controller? If I want to make it running even when the app closed.
Thanks.