Skip to content
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

"Unnamed Place" issue #35

Closed
DanielSmith1239 opened this issue Jan 5, 2020 · 15 comments
Closed

"Unnamed Place" issue #35

DanielSmith1239 opened this issue Jan 5, 2020 · 15 comments
Labels
duplicate This issue or pull request already exists

Comments

@DanielSmith1239
Copy link

DanielSmith1239 commented Jan 5, 2020

I'm getting the "unnamed place" issue, but only on android. I set my api key in the manifest per the guide, and it's working fine on iOS. It is not showing any map, and it is showing "Unnamed Place" in the address section on the bottom. I have all 5 of the needed APIs enabled on the Google API console. Also, no map is showing either. Here is what the screen looks like.

@humazed humazed added the duplicate This issue or pull request already exists label Jan 6, 2020
@humazed
Copy link
Owner

humazed commented Jan 6, 2020

duplicate #16
Please there comment if the solution doesn't work for you. as it's a common issue to make it as reference for future users and make sure you are using the last version.

@humazed humazed closed this as completed Jan 6, 2020
@DanielSmith1239
Copy link
Author

It is not the same issue. It is working perfectly for iOS.

@humazed
Copy link
Owner

humazed commented Jan 6, 2020 via email

@DanielSmith1239
Copy link
Author

DanielSmith1239 commented Jan 8, 2020

Here is how I'm showing the picker: link. Here is what the android screen shows: link. The iOS screen works fine. All that prints to the debug console when the code in the first image is executed is:

I/flutter ( 8343): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 8343): package:google_map_location_picker/src/map.dart 89:7 | position = Lat: 37.4219983, Long: -122.084

@humazed
Copy link
Owner

humazed commented Jan 8, 2020

Most probably it's an api key problem.
make sure of the following:

  • you enabled payment for this project.
  • Set the Application restrictions to none.

@DanielSmith1239
Copy link
Author

DanielSmith1239 commented Jan 8, 2020

I already confirmed both of those. I don't think it's an API key issue because I'm using the same API key for the iOS app and it works fine there.

Edit: I tried my key in the example app and it's not working, so I guess it is a key issue. I'm not sure what the specific issue could be. I don't think it's a payment issue, and I'm pretty sure all of the needed APIs are enabled. Do you have any ideas? I also confirmed that application restrictions were set to none.

Edit 2: I also saw that the Maps SDK for Android has 0 requests and 0 errors, unlike the Maps SDK for iOS which has a number of requests.

@DanielSmith1239
Copy link
Author

Fixed the issue: just needed to update my Android simulator.

@humazed
Copy link
Owner

humazed commented Jan 9, 2020 via email

@PrakashNaidu2662
Copy link

Here is how I'm showing the picker: link. Here is what the android screen shows: link. The iOS screen works fine. All that prints to the debug console when the code in the first image is executed is:

I/flutter ( 8343): RangeError (index): Invalid value: Valid value range is empty: 0
I/flutter ( 8343): package:google_map_location_picker/src/map.dart 89:7 | position = Lat: 37.4219983, Long: -122.084

Facing the same issue, Could you please help me out.

@humazed
Copy link
Owner

humazed commented Feb 4, 2020

It's a silly question but just to make sure you are replacing "KEY" with your google maps key?

@humazed humazed reopened this Feb 4, 2020
@PrakashNaidu2662
Copy link

It's a silly question but just to make sure you are replacing "KEY" with your google maps key?

I have done the same, I am getting the map view. But I am not getting the address.

Here I am attaching the image you can see:

Screenshot_1580807826

@PrakashNaidu2662
Copy link

I think it is same as #21

@humazed
Copy link
Owner

humazed commented Feb 4, 2020

Yes, it's the same problem, did you make sure the billing is enabled in your key?

@PrakashNaidu2662
Copy link

PrakashNaidu2662 commented Feb 4, 2020

Yes, it's the same problem, did you make sure the billing is enabled in your key?

I have not done the billing. Is that create this issue?

Okay, So what should I do now to resolve it.

@humazed
Copy link
Owner

humazed commented Feb 4, 2020

You should enable the billing.

@humazed humazed closed this as completed Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants