Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GoogleMaps (GMSView) Won't display in iOS

I have incorporated the following:

  1. Tried importing both the GoogleMaps/GoogleMaps.h as well as the GoogleMapsM4B/GoogleMaps.h files through an Obj-C Bridging Header
  2. Manually typed out the iOS API key in my AppDelegate.swift (didFinishLaunchingWithOptions) method.
  3. Cleaned the project (command+shift+k)
  4. Closed/relaunched Xcode
  5. Uninstalled/reinstalled Xcode

And pretty much everything else other people have suggested. I have spent two days straight trying to fix this problem. Does anyone know a solution to this problem?

The console complaint is:

> "2015-08-17 18:02:19.899 Project[608:10014] ClientParametersRequest > failed, 3 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x790bc050 > {data=<CFData 0x7925cb40 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:19.899 randoPracty[608:10014] Google Maps SDK for iOS > (M4B) version: 1.10.17867.0 2015-08-17 18:02:19.959 > randoPracty[608:10014] ClientParametersRequest failed, 2 attempts > remaining (0 vs 6). Error Domain=com.google.HTTPStatus Code=400 "The > operation couldn’t be completed. (com.google.HTTPStatus error 400.)" > UserInfo=0x7925cf40 {data=<CFData 0x79187b20 [0x22da9a8]>{length = > 145, capacity = 256, bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... > 3c2f48544d4c3e0a}} 2015-08-17 18:02:24.406 randoPracty[608:10014] > ClientParametersRequest failed, 1 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x790f4c60 > {data=<CFData 0x786e5610 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.797 randoPracty[608:10014] ClientParametersRequest > failed, 0 attempts remaining (0 vs 6). Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7925b390 > {data=<CFData 0x790f3760 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.797 randoPracty[608:10014] Google Maps SDK for iOS > (M4B) cannot connect or validate APIKey: Error > Domain=com.google.HTTPStatus Code=400 "The operation couldn’t be > completed. (com.google.HTTPStatus error 400.)" UserInfo=0x7925b390 > {data=<CFData 0x790f3760 [0x22da9a8]>{length = 145, capacity = 256, > bytes = 0x3c48544d4c3e0a3c484541443e0a3c54 ... 3c2f48544d4c3e0a}} > 2015-08-17 18:02:32.798 randoPracty[608:10014] Your key may be invalid > for your bundle ID: com.User.ProjectName" 
like image 499
Avery Bentz Avatar asked Aug 17 '15 15:08

Avery Bentz


People also ask

Why is Google Maps not working on iPhone?

You may need to update your Google Maps app, connect to a stronger Wi-Fi signal, recalibrate the app, or check your location services. You can also reinstall the Google Maps app if it isn't working, or simply restart your iPhone or Android phone.

How do I make Google Maps Full Screen iOS?

Google notes that the new full-screen mode can be activated by “tapping an empty spot on the map,” while improved voice search brings the ability to “type, or tap the mic and say, “directions to” a place for faster results.”


1 Answers

Just enable "Google Maps SDK for iOS" for your project in Google Developers Console.

like image 123
Michael Katkov Avatar answered Nov 04 '22 13:11

Michael Katkov