Xamarin.forms.googlemaps: Map shows blank in IOS, running sample project

Created on 16 Mar 2017  路  8Comments  路  Source: amay077/Xamarin.Forms.GoogleMaps

(This is template for issue. Please choose from feature request or bug report or others then write.)


FEATURE REQUEST / SUGGESTION

SUMMARY

(write summary of your feature request or suggestion)

DETAILS

(write details/usecases with text, codes and images)

// usage of your requested feature to use

PLATFORMS

which platform do you want?

  • [x] Android
  • [x] iOS
  • [ ] UWP

BUG / PROBREM REPORT

SUMMARY

(write summary of your bug report.)

VERSIONS

  • Xamarin.Forms.GoogleMaps - x.x.x
  • Xamarin.Forms - x.x.x
  • *

PLATFORMS

  • [ ] Android
  • [x] iOS
  • [ ] UWP

HOW TO REPRODUCE

(Let me show how to reproduce with steps or codes)



    1. 2.
  1. 3.
// code for reproduce

ACTUAL IMAGES

(Let me show your actual problem images/stacktrace. If you want to capture simulator screen to animation GIF, I recomend to LICEcap.)

something_image

// paste stacktrace

OTHERS

(free format)

Most helpful comment

Map is now showing, had to enable Google Maps SDK for iOS from Google console

All 8 comments

Could you please write more detailed info?
Are you running real device or simulator?
I am running with simulator and it is working for me.

I am running it on simulator(Iphone 6 IOS 10.2)
If i add a pin, pin shows but the map is still blank.

It is caused, because you have not specified API key in Variables.cs
screen shot 2017-03-16 at 9 46 03 am

screen shot 2017-03-16 at 9 49 45 am

I did specify the Api Key, in App.delegate ..
something Xamarin.FormsGoogleMaps.Init(MapsApiKey);
where MapsApiKey has the valid google key

Try following Build->Clean All
Remember API key for iOS is different than for Android

still the same, have added a new API key for IOS,
and the package name added under identifier.. in the IOS application

simulator screen shot 16-mar-2017 2 59 04 pm

Map is now showing, had to enable Google Maps SDK for iOS from Google console

I just want add more precise information since i had similar situation.
You need to select "Google Maps SDK for iOS" from url and press enable.
https://console.developers.google.com/apis/library

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goodguy010 picture goodguy010  路  5Comments

woellij picture woellij  路  4Comments

amay077 picture amay077  路  4Comments

Gavrielo picture Gavrielo  路  3Comments

soile1991 picture soile1991  路  5Comments