Google MAP GMSPlacePickerViewController: a confirmation window does not appear, such as Android in iOS

I implemented google GMSPlacePickerViewController on one of my screens.

Now problems in Android, they show a confirmation window with the selected image of location and location, as shown below,

enter image description here

Where in iOS they don’t ask for it, In iOS I used below code,

// The code snippet below shows how to create and display a GMSPlacePickerViewController. @IBAction func pickPlace(_ sender: UIButton) { let config = GMSPlacePickerConfig(viewport: nil) let placePicker = GMSPlacePickerViewController(config: config) present(placePicker, animated: true, completion: nil) } // To receive the results from the place picker 'self' will need to conform to // GMSPlacePickerViewControllerDelegate and implement this code. func placePicker(_ viewController: GMSPlacePickerViewController, didPick place: GMSPlace) { // Dismiss the place picker, as it cannot dismiss itself. viewController.dismiss(animated: true, completion: nil) print("Place name \(place.name)") print("Place address \(place.formattedAddress)") print("Place attributions \(place.attributions)") } func placePickerDidCancel(_ viewController: GMSPlacePickerViewController) { // Dismiss the place picker, as it cannot dismiss itself. viewController.dismiss(animated: true, completion: nil) print("No place selected") } 

Am I missing something in the above code?

+7
ios google-maps google-places-api
source share

No one has answered this question yet.

See related questions:

52
Android Place Picker closes immediately after launch
sixteen
Disable the select button when choosing anonymous location using the Google API to select a location in android
4
Google Maps Place Picker iOS Swift
2
Getting current location coordinates using google API location tool in android
2
swift - Google Places pickPlaceWithCallback closes immediately
one
Swift 2 iOS 9 animation disappears after changing button text
one
Swift error - using cell of implicit type 'cell' - Collection View
0
How to get image with UIImagePickerController and move on to the next VC
0
GMSPlacePicker pickPlace method fails in swift simulator
-one
Failed to reject MFMailComposeViewController from a separate ViewController

All Articles