user192632
user192632

Reputation: 266

Running native google map app inside of my app

Is it possible to run the google maps native app inside of my app, or does it have to be launched separately? I want to give the appearance of only one app running, mine. If the first answer is yes, what sort of control or method could I look up and use?

Upvotes: 0

Views: 131

Answers (2)

Adrian
Adrian

Reputation: 16715

You need to integrate the Google Maps SDK into your app. Here's a link to that SDK:

https://developers.google.com/maps/documentation/ios-sdk/start

I would recommend installing via CocoaPods. Here's a tutorial on how to get started with CocoaPods:

http://www.raywenderlich.com/97014/use-cocoapods-with-swift

Once you've installed the Google Maps SDK via CocoaPods, you'll need to get an API key and integrate it into your app:

To use the Google Maps SDK for iOS, you must register your app project on the Google Developers Console and get a Google API key which you can add to your app. Note: There are various types of API keys. You need an iOS key, not a browser key.

If you're using the standard API, you need an iOS key set up in a project of your choice.

Here's more information on that:

https://developers.google.com/maps/documentation/ios-sdk/get-api-key

Upvotes: 1

CommonsWare
CommonsWare

Reputation: 1006539

You cannot embed the Google Maps app into your app. You can embed native Google Maps into your app via the Play Services SDK.

Upvotes: 3

Related Questions