-
Notifications
You must be signed in to change notification settings - Fork 178
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
PlatformException when calling Geocoder.local.findAddressesFromQuery #29
Comments
@aloisdeniel Do you have any updates on this? We are trying to use this package on a production app and we would like to avoid using google api for this. |
Unfortunately I didn't have encounterd this issue yet ... It may be linked to the system, on what device model did this happened ? I suppose that you checked the user permission, right ? |
I'm testing this on a Pixel 2. The app has location permissions. Do I need more permissions? |
The weird thing is that it worked fine earlier... But it started crashing for no reason.. |
I'm also using open street maps which is not ideal, but it works. |
This is the error I'm getting:
Don't know if it is related but I am querying multiple addresses at the same time, asynchonously. |
@aloisdeniel I found how to reproduce the bug. Using this coordinate works well : (43.184319, 5.324419) Unhandled Exception: PlatformException(not_available, Empty, null) Seems like it does not accept negative lat/long I though the bug was random at first because I was receiving differents GPS lat/lon from my server. |
Hi! any updates on this issue? Because right-now the plugin is unusable... |
Hi guys. I am encountering this error too since this afternoon. It was working totally fine until one hour ago. I am using an emulator for a Pixel 2 on Ubuntu. However I tried on my real phone (Pixel) and here no error! So I updated everything and it's working on the emulator again! Hope this help someone! |
Same error is happening in iOS when using
This will happens only in some queries.
How to solve this issue. |
I just give up, and use the other plugin amap_location, it works fine. |
@aloisdeniel Any news ? |
I found the issue it happening in iOS only. Because IOS using apple map not google map. The only way is use Google API for retrieving details.
|
I got |
Sorry for not being very active lately. I'm not sure if all of you have the exact same issue (you got different codes, and you have different OS). In the meantime, as a workaround you can use the Google distant api via @g-balas Thank you for finding it! I will see if I can reproduce. @ClassSadStranger Triggering asynchronous calls from the build method is not recommended because it can be called multiple times in a row! You should store the |
Moving to https://pub.dev/packages/geolocator |
geolocator has the same problem |
I had the same problem while using the emulator. But while using device, I dont have any problem. I solved the emulator problem by opening the google maps and then running the app in emulator. hope this helps some one from stop spending a lot of time like i did. |
Happened to have the same problem. In my case it was due to the fact that I was sending too many requests in a short time. I solved the problem by using a Timer to send one single request 1 second after the user has stopped typing. |
this worked for me in an emulator aswell, weirdly |
I am facing the same problem , I have a collection with list of document and each document has a field type of Geopoint , some of them work fine and translate the latitude and longitude to address , but some of them , gime me this error PlatformException(failed, Failed, null) .. and I set a value for these fields , I don't know why |
I have also faced the same problem on my emulator and my physical device |
I am also having the same problem but I realized that this error occurs when you are using Geocoder without internet. The problem is even if you put the code in try catch, it still raise the error |
For me the first call of Geocoder.local.findAddressesFromCoordinates(coordinates); is succesful, but then stop working. In my case i have a page with a google map that shows the address every time the user stop move the map. When I open the page the address where the map is centered is retrieved correctly, then it throws the PlatformException(failed, Failed, null) at every later call. It's strange that when i wrote the code everything worked well, then I closed the app and the emulator, relaunched it, and this error showed up |
Worked for me Geocoder.google("APIKEY").findAddressesFromCoordinates(coordinates); |
that works because it is using google's API. This issue is related to
calling the Geocoder local method.
"You can alternatively use Geocoder.google member for requesting distant data from google services instead of native ones." - https://pub.dev/packages/geocoder
…
On Sun, Jul 19, 2020 at 11:55 AM Burak Tuntaş ***@***.***> wrote:
Worked for me
Geocoder.google("*APIKEY*").findAddressesFromCoordinates(coordinates);
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGB2YPH76MGHPCCRBCSVE4LR4MJQPANCNFSM4INARKCA>
.
|
Guys. Same Error came for me in "GeoCoder" lib in android emulator. Set the default location in emulator settings. Then it will work fine. |
@stevenosse |
Still have the error |
Did you use my fork? |
I still get these errors. is there no real fix yet? It always works again after waiting for some minutes. but that is unacceptable for production. I am using geocoder 0.2.1.
leads to:
This occurs mostly only in the Android Emulator for me |
You could try one of the forks that fixes this issue from checking the pull requests section. For unknown reasons, it's still not being merged by the repository owner though. #47 |
Works for me too, in emulator, thanks a lot |
Hi ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method findAddressesFromQuery on channel github.com/aloisdeniel/geocoder) Please how to fix this ? |
Still that fix has same bug for iOS platform |
still sam bug, happened today, app was working 2 hours ago now it has the same exception weird |
i fixed this by using in gradle.properties: |
Guys use flutter geocoder, It will work |
this work for me |
I fixed this error below. |
is this working fine in ios and how ? |
Hello everybody!
I regularly use this plugin for building production applications; but i've recently been notified by a customer of a bug on an app, [...], below is the error shown in the console
The text was updated successfully, but these errors were encountered: