Ionic 3 Google maps - map doesn't show on android

i’m trying to use geolocation and google maps with ionic 3, the app is working fine in the browser:


but for some reason, when i build the apk is not showing the map on my phone


this the geolocation .ts

import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Geolocation, Geoposition } from '@ionic-native/geolocation';

declare var google;

  selector: 'page-geo',
  templateUrl: 'geo.html',
export class GeoPage {
  map: any;

  constructor(public navCtrl: NavController, public navParams: NavParams, public geo:     Geolocation) { }

  ionViewDidLoad() {

    this.geo.getCurrentPosition().then(resp => {


    }).catch((error) =>{
  loadMap(position: Geoposition){

let latitud = position.coords.latitude;
let longitud = position.coords.longitude;
console.log(latitud, longitud);

let mapEle: HTMLElement = document.getElementById('map');

let myLatLng = {lat: latitud, lng: longitud}; = new google.maps.Map(mapEle, {
  center: myLatLng,
  zoom: 12

google.maps.event.addListenerOnce(, 'idle', () => {
  let marker = new google.maps.Marker({
    position: myLatLng,
    title: 'Hello World!'



i don’t know what’s wrong, thanks in advice

Check if you are authorized all domain on Google Maps SDK. And debug device with chrome console :wink:

same problem with me :frowning:

Is this related to GDPR?

General Data Protection Regulation??? no, i’m from south america(Chile), not europe

it is showing the map on my phone (after some updates in the code), but only if you turn on the gps before starting the app, it doesnt work otherwise :confused:

Thought maybe it was some new thing you had to approve @ google in order for it to work. So many privacy updates…

Even though you’re in SA you have to conform to the GDPR if it’s available to EU cit.

Hi guys,
This works for me Googlemap with geolocation