Google Map APIs not working after adding bundle identifier - iOS

google api ios
google places api not working ios
ios google maps api
get google map api key ios
how to create google api key for map in ios
ios place api
google maps sdk for ios cannot connect or validate apikey
ios google place sdk

I Google developer console I created an iOS key as below:

I want to restrict this key to one app only, so I "Edit allowed iOS application" add my bundle Id to it. My bundle Id is easily found in General tab of my project target as following:

I don't know if it is case-sensitive or not, but I copy exactly the identifier from there to add to the key. As you can see, it cannot be mistaken. I also followed Google's instruction, one bundle Identifier per line (I only input one line):

Accept requests from an iOS application with one of the bundle identifiers listed below (Optional) One bundle identifier per line. Example: com.example.MyApp

Or if you leave this blank, requests will be accepted from any iOS application. Be sure to add bundle identifiers before using this key in production.

This screen show that I enabled all necessary services, to be sure:

The problem with me is that, whenever I added a bundle identifier to the key, my app stops working. But then when I deleted it (now "Any application allowed" as in the picture), everything goes back to work fine.

Could anyone please tell me what could possible cause this?

UPDATE: To clarify more: When I add my bundle ID to the key in Developer Console, now I can still use nearby search in my app. But Autocomplete search and Google URL shortener have stopped working..

The reason Autocomplete stops working when you add an iOS Bundle ID is that Google Places API Web Service is specifically not designed for using on iOS. As a gentle hint, I suggest you poke around Google Places API for iOS after Google I/O happens later this week. =)

Google Map APIs not working after adding bundle identifier - iOS, I Google developer console I created an iOS key as below: enter image description here. I want to restrict this key to one app only, so I "Edit allowed iOSĀ  Select iOS apps. Add your app's bundle identifier. API restrictions; Select Restrict key. Click Select APIs and select Maps SDK for iOS. (If the Maps SDK for iOS is not listed, you need to enable it.) Click SAVE. Premium Plan Customers and Migrated Customers

whatever request that is getting 403 should be sent with additional header X-Ios-Bundle-Identifier, where your bundle id should be set. This seems undocumented, I only found it through jumping between links, see this...

Get an API Key | Maps SDK for iOS, I Google developer console I created an iOS key as below: I want to restrict this key to one app only, so I "Edit allowed iOS application" add my bundle Id to it. Note: The Google Maps Platform Premium Plan is no longer available for sign up or new customers. To use the Maps SDK for iOS you must have an API key. The API key is a unique identifier that is used to authenticate requests associated with your project for usage and billing purposes.

I also ran into this issue and solved it by following @zhywu's answer above

The Swift 5 code that leverages URLSession/URLSessionDataTask looks like this:

if var urlComponents = URLComponents(string: "https://www.googleapis.com/...") {
            ...
            guard let url = urlComponents.url else { return }

            var request = URLRequest(url: url)
            request.setValue(Bundle.main.bundleIdentifier ?? "", forHTTPHeaderField: "X-Ios-Bundle-Identifier")

            dataTask = defaultSession.dataTask(with: request) { ... }
            ...
}

Google Map APIs not working after adding bundle identifier, Get the API key; Add the API key to your app; Restrict the API key; Premium Plan Customers and Migrated Customers To use the Maps SDK for iOS you must have an API key. The API key is a unique identifier that is used to authenticate Requests to an API or SDK not associated with the API key will fail. Select iOS apps. Add your app's bundle identifier. API restrictions; Select Restrict key. Click Select APIs and select Places API. (If the Maps SDK for iOS is not listed, you need to enable it.) Click SAVE.

API Key Restrictions for iOS Apps with Bundle Identifier, I Google developer console I created an iOS key as below: I want to restrict this key to one app only, so I "Edit allowed iOS application" add my bundle Id to it. I downloaded the latest Google Maps bundle from Xamarin. I was able to generate an API key for IOS for that project and it runs perfectly. I have an existing application and I generated an IOS API key with the bundle identifier I used on Developer.Apple.Com. I put that same identifier in the Bundle Identifier in Project Options > IOS Application.

Google Maps Flutter, Do API key restrictions work for iOS app bundle identifiers, as configured We're using endpoints v2 (frameworks for python) - can we modify the backend Since we need to vendor in the endpoints code into our project to use confirm that ESP would not remove the headers that get sent to the backend. Select the Google Maps Mobile SDK for Work project that was created for you when you ordered the Google Maps Mobile SDK for Work. The project name starts with Google Maps APIs for Business or Google Maps for Work or Google Maps. If you have not yet purchased access to the SDK, please contact sales.

Adding Google Maps to a Flutter App, No anyone got a same problem like me after I checked on Github Issues. Using hardware rendering with device Android SDK built for x86. purposes - but forgot to change Bundle ID on Google console for IOS Maps SDK Before you can begin working with Google Maps on iOS, you need to download the Maps SDK for iOS and ensure that you have an API key. Complete release notes are available for each release. Quick start: Run pod try GoogleMaps to try the SDK demo app. For more details, see the guide to code samples. To build a project using the Maps SDK for iOS