Download Google Maps from the App Store if you dont have the app downloaded on your iPhone already. Add your API key to AppDelegate.swift as follows:ģ.1 Add the following import statement: import GoogleMapsģ.2 Add the following to your application(_:didFinishLaunchingWithOptions:) method, replacing YOUR_API_KEY with your API key: GMSServices.provideAPIKey("YOUR_API_KEY")ģ.3 If you’re also using the Places API, add your key again as shown here: GMSPlacesClient.provideAPIKey(“YOUR_API_KEY”) 4. How to share location between an iPhone and Android phone 1. Although, it can be easily downloaded from the Apple App. Discover shortcuts to go to search results on other sites. If you own an Android phone, you’ve likely been using Google Maps, which is pre-installed on most devices. The API key is a string of characters like this:ĪIzaSyBdVl-cTICSwYKrZ95SuvNw7dbMuDt1KG0 3. Help your friends and family take back their privacy Learn About Bangs. Your new iOS-restricted API key will appear in the list of API keys for your project. You can use the same key with any of your iOS applications within the same project.Ģ.6 From the dialog box displaying the API key, select Restrict key to set an iOS restriction on the API key.Ģ.7 In the Restrictions section, select iOS apps, then enter your app’s bundle identifier. Premium Plan customers must also add: pod ‘GoogleMaps/M4B'Ģ.3 Click Continue to enable the Google Maps SDK for iOS.Ģ.4 On the Credentials page, get an API key.Ģ.5 Note: If you have a key with iOS restrictions, you may use that key. Download the Google Maps SDK or install pods in your projectġ.1 To install pods, open your pod file and add the following lines: pod 'GoogleMaps' While you cant change the default mapping app on iOS, you can make it easier to switch to an alternative with a 1.99 utility app called Opener (opens in new tab). Before you begin working with Google Maps on iOS, you need to download the Google Maps SDK for iOS and get an API key.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |