Coder Social home page Coder Social logo

Comments (19)

sebastianbaar avatar sebastianbaar commented on May 23, 2024

hey @Prithivraj200, are you testing the plugin on a real device or on an emulator/genymotion?

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

Hi,
I am testing on real device.

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

Mh, ok... please give me some more infos about your tooling & setup:

  • For which sdk version / api level are you compiling your app?
  • What's your device's Android version?
  • Which versions of build-tools, platform-tools and sdk tools are you using?
  • Are you using Cordova or Ionic (Native)? Which versions?

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

Hi

Please find the setup details below:

android version of my device: 6.0.1
I am using ionic-native plugin(2.0.2)

cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:
cordova (Cordova CLI) : 6.5.0

local packages:
@ionic/app-scripts : 3.1.2
Cordova Platforms : android 6.0.0
Ionic Framework : ionic-angular 3.9.2

System:
Android SDK Tools : 25.2.4
Node : v9.3.0
npm : 5.6.0
OS : Linux 4.4

Environent Variables:
ANDROID_HOME : /home/emperor/Android/Sdk

Misc:
backend : legacy

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

That's a tough one... I'm not sure what causes the problem.. please check the following:

  • Update your Android SDK tools and try again.
  • There are some problems reported regarding Google Play Services - do you use these in your app? If yes: update & test
  • Does this problem occur with different search strings? Or is it always the same?

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024
  -  I have already updated my Android SDK tools and tried again. But still error persists.
  -    I am not using any google play services in my app.
  -    Sometimes it occur and sometimes it works perfect. (with different string).

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

Please give me examples of both strings that work and that do not work. Do you have any example code to reproduce the error?

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

https://github.com/Prithivraj200/Geocode

I have uploaded my code here. Kindly check.

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

Thank you. I send you a pull request where I added the plugin cordova-plugin-nativegeocoder & tried with some different locations. Everything works fine for me. Please check my pull request and try with your locations.

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

Ya it's working now. Thanks for your help.

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

Perfect! :-)

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

If I use google play services ,then will I get this error?

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

No, this shouldn't be a problem.

from cordova-plugin-nativegeocoder.

Prithivraj200 avatar Prithivraj200 commented on May 23, 2024

But like I said earlier, I am getting this error in a few occasions.

With same string, Chennai, few times I am getting coordinates and few times not.

from cordova-plugin-nativegeocoder.

nikhil0606 avatar nikhil0606 commented on May 23, 2024

Actually i am developing an application based reverse geo coding and i am also getting same problem like grpc failed . can u help me.

from cordova-plugin-nativegeocoder.

ManigandanRaamanathan avatar ManigandanRaamanathan commented on May 23, 2024

I'm facing the same problem. Can you please provide me the solution?

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

Hey guys,
unfortunately, the grpc error is very common using the Geocoder service on Android.

See SO and Google issue tracker links:

There is no fix for this error as far as I can see. The only thing I could figure out though is that the grpc error is thrown with bad (or no) internet connection. I'm going to check for connectivity before trying to access Geocoder on Android and hope that this will fix the error - at least most of the time... I will let you know as soon as I committed the fix and hope that you can help me test :-)

Cheers

from cordova-plugin-nativegeocoder.

rsgilbert avatar rsgilbert commented on May 23, 2024

Same problem here

from cordova-plugin-nativegeocoder.

sebastianbaar avatar sebastianbaar commented on May 23, 2024

I published a new version 3.1.2.
I now throw an "No Internet Access" error if that's the reason for grpc failing.

If you still get an "grpc failed" error please comment here (https://issuetracker.google.com/issues/64418751) as this is the most recent issue posted on Google's Issue Tracker! I can not fix this error as it is a problem on Google's site...

Thank you guys for using the plugin and filing the issue. I hope the error is fixed soon!

Cheers!

from cordova-plugin-nativegeocoder.

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.