Cannot get location with Geolocation

 map.one(GoogleMapsEvent.MAP_READY).then(() => {
    console.log('Map is ready!');
    console.log('----getCurrentPosition---');
    //ne focntionne pas
    Geolocation.getCurrentPosition().then(pos => {
      console.log('lat: ' + pos.coords.latitude + ', lon: ' + pos.coords.longitude);
    }, (err) => {
      console.log(err);
    });


    console.log('----getCurrentPosition---');
    let watch = Geolocation.watchPosition().subscribe(pos => {
      console.log('pos', pos);
    });