Movie-Ticket-Booking icon indicating copy to clipboard operation
Movie-Ticket-Booking copied to clipboard

why flutter google places returning null value

Open gunasekharravilla opened this issue 4 years ago • 7 comments

when I am trying to get the location its return null values

In Google cloud console its showing 100% error of 4xx

how to solve this issue because the entire project depends on it I even started a trial also but the issue not solved

gunasekharravilla avatar Feb 20 '21 08:02 gunasekharravilla

Please check this https://developers.google.com/places/web-service/faq#why_do_i_keep_receiving_status_request_denied

hoc081098 avatar Feb 21 '21 10:02 hoc081098

In my case, it's showing an error occurred in retrieving client Id, where I have to mention it in our project

gunasekharravilla avatar Feb 21 '21 13:02 gunasekharravilla

I still don't understand you problem 😕

hoc081098 avatar Feb 24 '21 09:02 hoc081098

when I'm trying to enter the location in the update profile screen

I/flutter (28303): [flutter_google_places] headers={X-Android-Package: com.hoc.datn, X-Android-Cert: f1865551998f7f1521a6ae62d8328070e6bf93e2} I/flutter (28303): [flutter_google_places] input=t location=null origin=null I/flutter (28303): [flutter_google_places] input=ti location=null origin=null I/flutter (28303): [flutter_google_places] input=tir location=null origin=null I/flutter (28303): [flutter_google_places] input=tiru location=null origin=null I/flutter (28303): [flutter_google_places] input=tirup location=null origin=null I/flutter (28303): [flutter_google_places] input=tirupa location=null origin=null I/flutter (28303): [flutter_google_places] input=tirupat location=null origin=null I/flutter (28303): [flutter_google_places] input=tirupati location=null origin=null I/flutter (28303): [flutter_google_places] sorted=[] I/chatty (28303): uid=10219(com.hoc.datn) 1.ui identical 6 lines I/flutter (28303): [flutter_google_places] sorted=[]

getting these logs in the terminal

In cloud Console getting error like below

image

image

gunasekharravilla avatar Feb 24 '21 11:02 gunasekharravilla

@gunasekharravilla Is your key restricted?

hoc081098 avatar Feb 25 '21 03:02 hoc081098

I Tried after restricting the key and enabled free trial also but getting the same error

currently key not restricted

what's the correct process to enable the places API for this app

I will Do it again from starting

gunasekharravilla avatar Feb 25 '21 04:02 gunasekharravilla

You can check your package name of app against restricted package, and also SHA

hoc081098 avatar Mar 01 '21 03:03 hoc081098