Cordova-plugin-geolocation ionic serve

I use a simple ionic application with cordova-plugin-geolocation. How can I change/configure my position with “ionic serve” command line tool ?

With ionic serve, you are basically emulating your app in a web browser, which will not have the cordova libraries, meaning you can’t use cordova plugins within the browser. When you build your project for a certain platform, the cordova libraries get included, which is why you can then use cordova plugins.

If you need to test specific cordova plugins, you’ll need to run your project on an actual device.