zhangtaii / react-native-google-place-picker

React Native Wrapper of Google Place Picker for iOS + Android.
MIT License
185 stars 54 forks source link

google place picker api shows just a second #21

Open SrengGueckly opened 7 years ago

SrengGueckly commented 7 years ago

I follow all the instruction ,but something went wrong is the pop up modal which shows the google place picker and search box close automatically , it seems like something trigger it to close, Can u give some idea?

lnpalmer commented 7 years ago

+1, yikes

iBicha commented 7 years ago

+1, the callback says didCancel == true

iBicha commented 7 years ago

Okey i solved this, onActivityResult callback returns a resultCode of value 2 This is solved by Enabling "Places API for Android" and not just "Places API" in the Developer Console. Edit: this also happens if you have a wrong API key

jakewtaylor commented 7 years ago

My issue was that I restricted my API Key using package name and SHA-1 Signature (as suggested on Google Developer Console), but I must have gotten something wrong as removing the restriction seemed to work.

princenaman commented 6 years ago

Change the API key in AppDelegate.m and manifest file.

yudikarma commented 5 years ago

in my case GO to Google COnsole then Enabled API for Android Google Places, then Go to Manifest.xml and put this code under

<meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/google_maps_key" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />

and dont forget to put Google API key

SunryTeang commented 5 years ago

@yudikarma we ready enable google place api and set update it in Manifest when start intent google place it show up google search place on 1-2 second it will be auto dismiss? before not like that so what the google developer update face error like this?

ahmetfarukekinci commented 5 years ago

I have this issue and google console does not give any seperate key for ios and android anymore. So, if someone who could find any solution for this please let us know. Thanks.

Edit: Problem for time being is beta version. If you get this error follow beta version read me.

akiladevinda commented 5 years ago

@SrengGueckly i have this issue too.. Is this has been fixed

akiladevinda commented 5 years ago

Okey i solved this, onActivityResult callback returns a resultCode of value 2 This is solved by Enabling "Places API for Android" and not just "Places API" in the Developer Console. Edit: this also happens if you have a wrong API key

I still have this issue

Hamza-Khurshid commented 5 years ago

Okey i solved this, onActivityResult callback returns a resultCode of value 2 This is solved by Enabling "Places API for Android" and not just "Places API" in the Developer Console. Edit: this also happens if you have a wrong API key

I'm unable to find "Places API for Android" there is only "Places API. Anybody help!