Comments (9)
Hello @scerelli, I'd try and look things over this weekend, first to see if I can reproduce your issue and then to see if newer versions of RN may have introduced any breaking changes.
To start with, ensure you are running, at least RN 0.33
, and moving forward, I'd only try to make the package work with only the latest version of RN, owing to the rapid way the core APIs for RN seem to change. As such, I suggest you should be on the very latest stable version of RN.
In any case, expect an update soon, thanks.
from react-native-google-places.
So @scerelli, just to update you. I have just pushed a minor update to the package. Start by updating to 0.8.2
, doing so would bring your app build to a more recent version of the Google Play Services
. Also ensure you update your android
build environment via the Android SDK Manager
. Get at least Google Play Services rev. 37
. See below:
That should be all the 'house keeping' you may need to do to make things work on android. I have tested this new release in RN versions 0.33 and 0.37
and on the Android Emulator
and on a physical Samsung Galaxy S6 edge (Android 6.0.1)
and everything works as expected. See below:
Emulator:
Physical Samsung...
PS: Unlink the package (react-native unlink react-native-google-places
). Update the package (npm install --save [email protected]
) and relink with your app (react-native link react-native-google-places
). Build and run your app (react-native run-android
). Cheers.
from react-native-google-places.
@tolu360 I have the same problem could not invoke...
everytime I use with this module https://github.com/rebeccahughes/react-native-device-info I think its conflict. If I remove react-native-device-info the module is working again.
Also, your plugin is crash when run in Xiaomi redmi note 3.
I'm using react native 0.34 & this latest plugin (v0.8.2)
from react-native-google-places.
Hi @ganjarsetia, your conflict might be that of Google Play Services but I'm not so sure right now. Lets do a quick debugging together:
- Open up
node_modules/react-native-device-info/android/build.gradle
and change the last line tocompile 'com.google.android.gms:play-services-gcm:9.6.0'
. - Run
react-native run-android
to rebuild and recompile your app. Try to use both packages together after the changes.
from react-native-google-places.
The problem is related to the Google Play Services version. I updated it on my fork and everything works smoothly now.
from react-native-google-places.
I have the same problem as @ganjarsetia . I'm using xiaomi redmi note 3 (snapdragon version). When I use openPlacePickerModal() method my apps is force closing without leaving any error message. I'm using RN 0.34.0, your latest plugin version (0.8.2) and installed latest Google Play Service on my Android SDK.
Sorry for the bad english.
from react-native-google-places.
@tolu360 Sorry for late reply. I already follow your instruction. Still same error.
Your module is crash on xiaomi redmi note 3. Should I create new issue?
from react-native-google-places.
I was able to solve this problem by explicitly adding a dependency on com.google.android.gms:play-services-places:9.8.0
. it seems the PlacePicker
class is no longer a part of the com.google.android.gms:play-services-location
package.
from react-native-google-places.
Hi @jsonmurphy, thank you for sharing that, I'd update the package shortly to 9.8.0
, already compiling with com.google.android.gms:play-services-places
.
from react-native-google-places.
Related Issues (20)
- Possible option to process search when user is done typing instead of autocomplete?
- Android - This IP, site or mobile application is not authorized to use this API key. Request received from IP address **** with empty referer HOT 13
- Apple Mach-O linker Error
- over limit query error HOT 1
- Start search only when user clicks on the enter or return key
- To get location using postal code
- Updating GoogleMaps to 3.5.0 HOT 10
- [IOS] priceLevel is returned even if not selected in placeFields - possible billing concern HOT 2
- [iOS] Keyboard don't dismiss after selecting place
- Fatal Exception: java.lang.RuntimeException: Unable to start activity ComponentInfo(com.google.android.libraries.places.widget.AutocompleteActivity) HOT 1
- [QUESTION] Is this repo being maintained? HOT 3
- by using RNGooglePlaces.getCurrentPlace() getting wrong current locations in Ios. same code working fine in android
- Place Details Viewport changes starting with Places SDK for iOS v5.0 HOT 1
- Both ACCESS_WIFI_STATE & ACCESS_FINE_LOCATION permissions are required (Android) HOT 1
- Installing with react-native-maps HOT 1
- 8: Location unavailable error when trying to get user current location
- (Android Play Store) Leaked GCP API Keys: Your app contains exposed Google Cloud Platform (GCP) API keys HOT 3
- android build issue -> Could not find com.android.volley:volley:1.1.1 HOT 14
- patch-package react-native-google-places+3.1.2.patch HOT 3
- Showing error `Expected a type` in the files RNGooglePlacesViewController.h and RNGooglePlacesViewController.m
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-google-places.