Geolocation not return coords

Hi !

When I use the Geolocation plugin with getCurrentPosition() :

var position = Geolocation.getCurrentPosition();
    position.then((resp) => {
      console.log(resp.coords.latitude)
    })

It return this :


callbackId: "123033396"

methodName: "getCurrentPosition"

options: {}

pluginId: "Geolocation"

type: "message"

This is not the coords of user.

Anyone help ?

What platform is this happening to you on? Are you running this on a physical device or an emulator/simulator? Have you enabled the geolocation permissions in the native project?

Hi !
I fixed the issue by emulating my app on a physical device
Thank’s for help !