Xamarin Forms project blank google map on emulator and device

Viewed 2158

I have created a cross platform App using Xamarin forms. On Mac Book Pro(el-Capitan) I need to use maps in it thus using Xamarin.Forms.Maps My manifest file is given below Manifest file

I have generated an API key on Google Developers Console using the SHA1 signature. On Mac I have used the following commands

keytool -genkey -alias ftpKey -keystore privateKey.store

keytool -list -v -keystore privateKey.store

This gives me the SHA1 key

For the package name I have used exactly the same name as given in the package com.xrmlabs.submyclass.

Code for Map Generation is given below

constructor of tabbed page

This is the output on both physical device(API level 22) as well as Xamarin Android Emulator(API Level 16). Everything in debug mode

Output on Emulator

I have used locator service too as is evident by the code, but I have removed it for now to keep things simple. When I run the app, there is no error.

Because this is my first app I may be doing it the wrong way. I have gone through the following answers Android Studio - Google map still blank on real Android device

Android: Blank page when using google map api 2

3 Answers

I have solved this problem by configuring my project in Google Console to Enable Places SDK for Android And Maps SDK for Android

wait for few minutes and BOOM !

Related