Open raaguln opened 5 years ago
@beyondtheinferno verify your api key, and check that you have enabled the Places API on GCP
@tmjordan Yes I have the API and Places API enabled. There are no restrictions on the API key as well
@beyondtheinferno that's weird, i experienced this issue once, when using a new api key which does not allow to use PlacePicker as it is deprecated
check your restrictions on your api key, if you have any restrictions make sure it matches with the bundle id of your app
I have the same issue.. Any solution ?
Similar issue. My modal in ios closes as soon as it opens. Also, I get the error illegal callback invocation from native module
. This is in ios only, android's working fine.
I fixed it by going to Google Console, and in the top of the screen from the Google APIs credential clicking in a message saying to upgrade my account.
Even with billing and restricted key, it still happens. Any idea?
I can still type in one or two letters, some results appeared, but then the modal suddenly closed.
Edit: Got it. Billing must be enabled:
https://developers.google.com/places/ios-sdk/client-migration
Reminder: To use the Places SDK for iOS, you must:
Include an API key with all API requests.
Enable billing on each of your projects.
Enable the Places API service for each of your projects.
thanks for a great library @tolu360 👍
I double checked the billing and the keys, they are all set.
However, the issue persists. I notice that there is no outgoing internet request made to the google API before the crash occurs (but after the popup starts). So perhaps that isnt the issue on my end. I suspect something to do with version mismatching but i cant quite find the issue.
react-native@0.52.3
react-native-google-places@3.1.0
react-native-maps@0.25.0
Xcode11 (Xcode 10.3 previously. the upgrade requires a change to RCTMethodModule.mm file. Tested both and had same behavior.)
after that moment of auto-self-closing the app is entirely frozen and must be rebuilt entirely to function again. No obvious error message is displayed. will dig deeper.
tried the sample app, and got it working for RN@0.58 but not RN@0.52.3-0.53. For the sake of time i'm exploring the Place API route via direct Fetch call and parsing the JSON results. It's not that bad and not too far from parity since the placepicker had been deprecated. It's a bit easier to setup and protect keys in a way as it doesnt require a binary change. It will take less time than I've spent debugging for now. Hugely appreciate this library still for all the years I relied on it. Good stuff. thanks again @tolu360
The modal window pops up briefly for barely a second and then slides back down, not allowing the user to be able to type any input. Not understanding why it's happening.
The component snippet -
The action snippet -
No errors or warnings except this constant warning that keeps coming up, though I'm not sure if this is relevant to this issue -