-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS google version should be using native library instead of 'webclient' #20
Comments
Hi @lzbikowski-opensource , it is using native API by default. "Force Google on iOS" options is for someone who needs consistent results across platforms. |
Hi @timwangdev thanks for a quick reply. As an example - if you generate Google API credentials for 'ios' the request will be rejected (I assume that through iOS sdk would be accepted as the bundle id is sent). Does it make any sense ? :-) The annoying part about 'native iOS' (not google) is lack of support for simultaneous requests... |
@lzbikowski-opensource I got your idea. Using native API requires embedding or depending on Google Maps SDK, which may be not the direction I'm looking for. Since the package only using a geocoder service. And also, native SDK seems only providing reverse geocoding. API keys restrictions could be an issue here, I will leave this open for discussion. Do you have any idea about this? |
Let me explore a bit and come back to discuss further |
@timwangdev for reference: It's indeed missing feature of SDK: "The important bit is to populate the X-Ios-Bundle-Identifier header."" As per GoogleCloudPlatform/cloud-vision#16 Swift:
I will be exploring further and share any results here to help others. |
According to FaridSafi/react-native-google-places-autocomplete#140 , and FaridSafi/react-native-google-places-autocomplete#526 , it seems that adding the |
Hi @timwangdev, how you can use Referer prop to get the Api Key not used outside your app? Can you post an example? Thank you |
Hi @timwangdev, i'm the maintainer of |
Hi @bell-steven, thank you very much for updating me about this. That actually makes a lot of senes. I'll update the project about this limitation. |
First of all, thank you for the time you have put to 'resurrect' geocoder lib,
Saying that - I have noticed that it's using google web API instead of native iOS.
As a result, it's not possible to limit API key usage (and it can be stolen).
Do you have any plans to move to native ios API?
The text was updated successfully, but these errors were encountered: