Not showing the map data - Xamarin.Forms.Maps - android

I know that this problem has been consulted before, but no answer gives me a solution.
I want to use Xamarin.Form.Maps and I can not see the map. I have tried with a simple application of mine and with the WorkingWithMaps example
https://developer.xamarin.com/samples/xamarin-forms/WorkingWithMaps/
In both tests I get the same attached image:
From my Samsung device
I have tested on my Samsung device and emulator.
I have already successfully created my Google Maps API v2 key from the suggested link:
https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/obtaining-a-google-maps-api-key?tabs=vswin
I do not get compilation errors.
I have also modified my Android manifest as indicated. In the case of WorkingWithMaps everything is set. I have also enabled the necessary permissions.
I have updated Visual Studio, Nugets and the Google Play Services app ...
And, honestly, I do not know what else to do ...
Any help, please?
Thanks in advance.

Related

how can i solve GoogleApiManager SERVICE_INVALID for App with Location permission?

i'm new to coding and as a final project on a course I decided to build and Android app, since it's what I want to focus my studies later (kinda regret it now...).
My idea is about an app that will have GPS services and actions based on GPS locations, so I started following tutorials from the basics up, now i'm following a basic tutorial about a GPS app (in Kotlin) that just displays the current location with an on/off switch.
I'm still getting familiar with Android Studio and all the methods etc, but as of now I got to solve many of my problem since the documentation is plenty.
For the last 4-5 days i'm struggling to get it to work since i never got to get the location from it, I've followed the tutorial, I've copied code from repositories that followed the same tutorial, but in the console I keep getting:
2022-07-13 15:06:25.275 4791-4815/com.example.gps_activity_test W/GooglePlayServicesUtil: com.example.gps_activity_test requires the Google Play Store, but it is missing.
2022-07-13 15:06:25.275 4791-4815/com.example.gps_activity_test W/GoogleApiManager: The service for com.google.android.gms.internal.location.zzaz is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}
up until today the second error message was logging
android.gms.internal.service.zap
instead of
android.gms.internal.location.zzaz
I've been searching for service.zap, or googlePlayServiceUtil or GoogleApiManager, but nothing to help, and I only found this github issue for an errorcode similar to mine, but I haven't understood much anything about it.
I've reinstalled google play services in my emulator, and tested the app on my physical phone but no luck.
Also using custom logging messages or displaying a text update only goes so far in the code before this problem blocks it from proceeding
The app seems to work fine, it doesn't crash, but the UI values stay at 0.0 not updating with the location informations, since I guess the app doesn't receive.
All the videos i've watched only ask for COARSE_LOCATION and FINE_LOCATION while only adding implementing the 'com.google.android.gms:play-services-location:20.0.0' copied from the documentation and also added and removed others following what I understood from the docs
As a beginner, the android doc is kinda a nightmare to understand plus it seem to constantly change and reading questions/answers or tutorials from just a year ago, many methods or arguments are different or deprecated.
Any insights on what to do?
I've been stuck for 4-5 days with no step forward...
Going on with the tutorial seems useless, since it is all based on locations, so even if I copy all the new features and functions, I'd still be stuck not knowing if they're working or not.
thanks for your time, sorry if I didn't provide enough context
Reinstalled Android Studio
Reinstalled the emulated device (specifically choosing one that has already google play store installed) and opened the project again.
Now it works also on my physical phone.

At least one of your app or app bundles contain an actions.xml file

All of sudden google console started throwing an error message saying - "At least one of your app or app bundles contain an actions.xml file."
I have searched my entire app, there is no actions.xml.
Also used Analyze Apk tool of android studio to cross verify if any lib or other module may adding the actions.xml.
Here is one troubleshoot link from google (link) it describe the process To accept the Actions on Google Terms of Service.
But question remains the same that project doesn't contain any actions.xml.
Is it a console bug or I am missing anything.
This was very weird but when I tried to upload the apk after sometime it worked perfectly fine without any error messages.
As I rightly mentioned in the question there was no action.xml and action tag anywhere in my entire project.
It seems to be a console bug in my case.
It was a Google Play Console bug:
Thanks for your patience while our team investigated the behavior you experienced.
They have recently made some changes that should fix the problem. With the recent set of changes, please check to see if you are still experiencing the same issue. If so, I will be happy to see how else we can help.
Please ensure to clear your browser's cache and cookies first using the instructions available in our help center before accessing the Play Console again.

Google Places Autocomplete Can't load search results

I am trying to implement the Google Places Autocomplete API sometimes I am able to get location list but sometimes I get "can't load search results" message. Can someone pease help me with the issue.
This issue have a few possible reasons:
No billing account associated to the project
If you are still using the old Places
SDK
If you reach your quota limit(e.g. self imposed cap
usage)
If your app is not properly
restricted
If any of the above doesn't fix your issue, it would be best to reach out to the support team of the Google Maps Platform as this error commonly has something to do with your configuration in the GCP console wherein only the support team of Google Maps Platform can assist you.
Hope this helps.
i already added the billing service also then get the same error then i added the api key in gradle file and then its works for me
Added your api RNGP_ANDRIOD_API_KEY=***** in gradle.properties
If any of the above still doesnt work, and if you happen to be using an emulator to run the app, try uninstalling the app, then re-installing it when you run the program in android studios.
Background info:
I happened to encounter this issue on my emulator despite doing everything mentioned above, but when I tried downloading the app onto my phone, I found it working there so I tried uninstalling the app on my emulator and it worked after.

Google Play Services has to be updated for my app to run on emulator, Need to run the app on emulator only as I have to find the id's.

I am trying to automate an android application using Robotium. I am trying to find the id's of the elements using Hierarchyviewer on the emulator. When I launch my app on the emulator it says "Update Google Play Services" and app closes. I tried all the solutions to updated Google Play Services on Emaultor- NO USE. Tried with AVD - Google API 4.2.2 as well.
Please let me how do I proceed from here.
As pointed out by GrIsHu you should be able to follow what is on that page. If you really cannot get that to work, I might suggest trying to use an alternative emulator Genymotion This makes it really easy to get new emulators that run fast and also gives you a few extra features.

How to get Android Market licensing sample to work?

I downloaded the sdk and added the library to my workspace, then the sample for market licensing. The sample app seems to force close somewhere after/during the instantiation of LicenseChecker. I tried running on the emulator with Google API 8 and on a droid x with froyo and it force closes. The stack shows PerformLaunchActivity as the top item.
Both emulator and phone had a registered gmail account.
Any ideas how to get this to work?
Ok, simple answer was look in the code and replace the public key as it says.

Categories

Resources