Giter Club home page Giter Club logo

Comments (16)

NasirRazaChangezi avatar NasirRazaChangezi commented on May 26, 2024 49

fuck u github..u dont have solutions for our questions

from react-native-geolocation-service.

mehrankhandev avatar mehrankhandev commented on May 26, 2024 2

Check These lines added in your MainApplication.java

import com.agontuk.RNFusedLocation.RNFusedLocationPackage;

new RNFusedLocationPackage() in protected List getPackages() method

It fixes my issue

from react-native-geolocation-service.

klaasel avatar klaasel commented on May 26, 2024 1

Indeed follow the steps for 0.59 and lower if this error occurs. 'No additional setup is required for 0.60 or above' sounds tempting.

from react-native-geolocation-service.

relightme avatar relightme commented on May 26, 2024 1

react-native: 0.61.4
react-native-geolocation-service: 3.1.0

react-native link @react-native-community/react-native-geolocation-service resolved this issue for me.

from react-native-geolocation-service.

rodrigues-t avatar rodrigues-t commented on May 26, 2024

I am facing the same problem. Did you find out some solution?

from react-native-geolocation-service.

archana-iron avatar archana-iron commented on May 26, 2024

I have created a new sample, follow all the instructions and make some extra changes as mentioned below, it works for me. But I am not able to detect the issue occurring in previous sample.
Typerror::Cannot read property 'getCurrentPosition' of undefined, this occurs if it's not linked properly.
I have linked again .
After this I set googlePlayServicesVersion = "11.0.0" to "16.0.1" , and it's works for me.

from react-native-geolocation-service.

jearaneda avatar jearaneda commented on May 26, 2024

I'm having the same problem but changing googlePlayServicesVersion didn't work.

from react-native-geolocation-service.

archana-iron avatar archana-iron commented on May 26, 2024

Add this inside build.gradle(Module: app)
implementation "com.google.android.gms:play-services-location:16.0.0"

And Please try to link this manually. It might resolve your issue.

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 26, 2024

Google play service version may change depending on which android version you're targeting. So try out different versions and see if it works.

from react-native-geolocation-service.

christopher-18 avatar christopher-18 commented on May 26, 2024

Getting the same error, even after making the above mentioned changes.

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 26, 2024

This can only happen if your setup process was wrong. Make sure the setup is ok and that you added new RNFusedLocationPackage() in MainApplication.java

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 26, 2024

Closing this, as it's most likely setup issue. Please follow the instructions properly.

from react-native-geolocation-service.

xxRockOnxx avatar xxRockOnxx commented on May 26, 2024

@klaasel i was about to say that. I think this should be mentioned in the README so it can help other people in the future as well.

from react-native-geolocation-service.

oakis avatar oakis commented on May 26, 2024

@klaasel i was about to say that. I think this should be mentioned in the README so it can help other people in the future as well.

Pull requests are welcome.

from react-native-geolocation-service.

Agontuk avatar Agontuk commented on May 26, 2024

So, you need to follow the steps for 0.59 or lower in order to setup 0.60+ projects ? That shouldn't be needed as far as I know.

from react-native-geolocation-service.

MarlonX19 avatar MarlonX19 commented on May 26, 2024

I had a similar issue when trying to get user's location. Depending on which version of android you now need to ask for the user to grant location, not only by adding the permission line to the AndroidManifest but also by using AndroidPermissions on the react native code

https://facebook.github.io/react-native/docs/permissionsandroid

Still, make sure you have react native geolocation services installed: https://github.com/Agontuk/react-native-geolocation-service

from react-native-geolocation-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.