ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

White screen #64

Closed keisserdur closed 6 years ago

keisserdur commented 6 years ago

I'm submitting a ... (check one with "x")

If you choose 'problem or bug report', please select OS: (check one with "x")

cordova information: (run $> cordova plugin list)

cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.4.1 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.1.0 "cordova-plugin-ionic-webview"
cordova-plugin-whitelist 1.3.3 "Whitelist"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

Current behavior: When I create the map the screen goes blank, apparently I should not or I do not see the error, it is true that when compiling it with xcode the message WARN:' Ionic Native: tried accessing the GoogleMaps plugin but it's not installed., But then in the list of installed plugins if that appears.

For example, I created an alert (alert ('Installed' + GoogleMaps.installed ());) and returns false.

In the google console I created an api key, at first I had restrictions for a Bundle identifier but I ended up removing it in case there were problems in that sense (the restriction).

Expected behavior: At first to see the map, then I would be responsible for putting points, routes, places ...

Screen capture or video record: captura de pantalla 2018-08-31 a las 12 44 34

Related code, data or error log (please format your code or data):

map: GoogleMap;
  mapElement: any;

  constructor(public navCtrl: NavController) {
    setTimeout(this.loadMap.bind(this), 1000);  
  }

  loadMap(){
    alert('Installed ' + GoogleMaps.installed());

    this.map = GoogleMaps.create('map');
    .
    .
    .
    .
    . 
  }

Full code

wf9a5m75 commented 6 years ago

https://docs.google.com/presentation/d/e/2PACX-1vScoho1ensbR4qCI9AIuQN55BZVvK73pAjI7sumDvW3CrxxHnrmpXWUjx2-8CpFibqU1EjLKCRhuthJ/pub?start=false&loop=false&delayms=3000&slide=id.g292c767148_0_0

wf9a5m75 commented 6 years ago

ping

wf9a5m75 commented 6 years ago

Since there is no response for a while, I close this thread. But you can still reply anytime.

RicardoElSabio commented 4 years ago

Its happening the same for me, I have no thrown error. Its just simply white screen, and the map cant be loaded .

Capture
nikiphoros commented 2 years ago

same for me too

TelmoFerreira commented 2 years ago

Me too.. Ionic 6