swift - iOS: GooglePlaces API error -


i getting error when trying use sample code google places getting started link

error: current place error: operation couldn’t completed. internal error occurred in places api library.

i calling function on viewdidload. created ibaction code make sure wasn't timing issue. got same error way well.

placesclient.currentplace { (placelikelihoods, error) in         guard error == nil else {             print("current place error: \(error!.localizeddescription)")             return         }         if let placelikelihoods = placelikelihoods {             likelihood in placelikelihoods.likelihoods {                 let place = likelihood.place                 print(place.name)             }         }     } 

i have created new project in firebase, created new project in google dev console. created new api key, enabled google maps , google places api. added corelocation framework, pods date. should not hitting limits me learning. have location when in use set plist - user gets dialog on fresh install. accepted it. added location manager code here make sure getting location. signed apple developer app on device in case location wasn't staying on simulator. have feeling stupid. please let me know ideas passed this. thanks!


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -