-
Notifications
You must be signed in to change notification settings - Fork 33
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
Android issue with React Native 0.53 #8
Comments
in ios not working for me...please help const polygon = [
my coordinates is inside of polygon in android its working fine. also with realtime coordinates |
Hi sorry for the late reply |
yes i am testing on simulator. **see this is my custom location. let point = { GeoFencing.containsLocation(point, polygon) it always display POINT IS NOT WITHIN POLYGON is there any particular installation procedure for ios ? |
Not particular, you have to just link the libraries and install in podfile thats it. If its not propperly installed it would have given error already. So i guess something is really wrong with library. I spend half of the day on android real device..zero success untill i kinda realized this thing is not useful for physical devices & ended up doing something else :( |
in android for me its working with live location.. |
Try on ios simulator one more time, if it works then we can conclude that it works on simulators and not real devices, let me know i ll share the code although its just like the one in docs nothing fancy... |
@ydv0121 can you help me plz !!! |
@hasanal1995 about what? |
it is not working only if lat and lng fully matching, can i set radius ? |
i don't know about it when lat lng fully matching |
i mean it is not working only if point equals one of geofences.
} // if point equal { lat: 32.0176763, lng: 36.0081422 } "point is within polygon", else if is not equal exactly "point is NOT within polygon". are you understand me bro ? |
yes understood but looks like you are matching with only one lat-lng with your current location...in polygon/radius there are starting and ending points .. your polygon must have starting and ending points like this const polygon = [ |
You mean first coordinates must be as last coordinates? And coordinates between them can be different ?? |
Hello Friend My lat long coordinates is inside the "const polygon" but still show "point is NOT within polygon" or "you are outside of polygon". I'm using my android real device for this project. Can you help me about this problem? thanks in advance |
I'm currently using react-native-cli: 2.0.1 and react-native: 0.57.1 version. Any solutions? Thanks friends |
On ios everything works fine but i got an error on android app.
This is more like a tip for those who are starting out with newer react native version. If you get this error
com.google.android.gms.maps.model null
Just add this inside your build.gradle file and recompile
compile "com.google.android.gms:play-services-maps:11.6.0"
The text was updated successfully, but these errors were encountered: