How to update Maps SDK (version 18.0) in Xamarin.Android? - c#

I am new to Xamarin.Android. I am trying to update the Google Maps SDK for Android (version 18.0.0), which is now available via Google Play services. However, all the documentation on updates use build.gradle and change the dependencies to com.google.android.gms:play-services-maps:18.0.0 , which Xamarin doesn't have. How do I update the Maps SDK in Xamarin?

Xamarin creates and maintains Xamarin.Android bindings for Google Play Services Google also offers a native mapping API for Android. The Maps API is suitable for cases where you want to maintain more control over the mapping experience.
Things that are possible with the Maps API include:
Programmatically changing the viewpoint of the map.
Adding and customizing markers.
Annotating a map with overlays.
Unlike the now-deprecated Google Maps Android API v1, Google Maps Android API v2 is part of Google Play Services. A Xamarin.Android app must meet some mandatory prerequisites before it is possible to use the Google Maps Android API.
Several steps need to be taken before you can use the Maps API, including:
Obtain a Maps API key
Install the Google Play Services SDK
Install the Xamarin.GooglePlayServices.Maps package from NuGet
Specify the required permissions
Optionally, Create an emulator with the Google APIs
For more details, you can check:
https://learn.microsoft.com/en-us/xamarin/android/platform/maps-and-location/maps/maps-api#install-gps-sdk .
and
https://github.com/xamarin/GooglePlayServicesComponents

Related

How to set up the backend for mobile app using the offline sync feature

I'm starting with xamarin.forms mobile apps and trying to build an app using the azure offline sync feature.
In sample applications and tutorials one is asked to create a new backend project by selecting ASP.NET Web Application with the Azure Mobile App template - which in the meantime is retired.
Similarly in the azure portal the template (Web + Mobile => Mobile App) to build the backend
is retired.
So it seems the offline sync feature requires setup of specific components which no longer are provided by microsoft. Since other key features of mobile apps (push notification, authentication &
authorization, ...) are still advertised it seems to me that the offline sync feature has silently died.
So my questions are:
how to set up that backend given that those templates are no longer available?
anybody having experience with that feature in a real world application: does the offline sync feature as it was advertised has proven to be a usable feature ?
Any guidance on how to implement the backend feature (without the mentioned templates)
would be highly appreciated.
Check out the book: https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/ - it covers set up without the portal functionality, which - as you have pointed out - is no longer included in the portal.
"It depends" - generic offline sync always has caveats because it requires models to be created a certain way in order to support offline sync. Can you use the feature to synchronize "any" model? No. However, if you follow the rules laid down (the book I linked to, which I wrote, is a good starting point), then it works well.

google maps url usage and google api

I am pretty new to google maps. In my commercial project application i need to write a module which would generate and open google maps url with planned route for drivers. I've read a lot that i need google api, nevertheless just few minutes ago i found this official page: google developer's guide
Google claims there: "You don't need a Google API key to use Maps URLs.".
Does it mean when my commercial app will be generating routes urls which would open either google map application (for instance on android) or if there is no google map installed on device - then it will open webbrowser accordingly, does it mean in this case that this is fuly legit and no google api key is required?
Yes, your understanding is correct, as per the official documentation You don't need a Google API key to use Maps URLs.. Maps URLs can be used to build a cross-platform URL to launch the Google Maps application and perform searches, get directions, display map views or panoramic images.
Maps URLs are different from the Google Maps Platform APIs itself which requires an API key to work. API keys are required to keep track of your Google Maps API intended usage.
This is an official documentation from Google, therefore, should be credible.

Google, Bing, Azure Maps off-line

I am building an application that can use Google, Bing and Azure maps to display my data.
I'm now at the stage that I need to look into how to display these maps when I don't have an internet connection.
Do you know how I can use these map services while off-line?
Is it possible to cache the information perhaps?
If you are targeting the Windows platform, the UWP map control fully supports offline usage.
https://learn.microsoft.com/en-us/windows/uwp/maps-and-location/display-maps
Using the bing maps web control offline is not supported (and storing bing maps tiles offline is against the terms of use).

How to implement UIDAI Aadhar APIs in asp.net c# and Android?

I am developing application which require Aadhar card authentication using C#.Net MVC.
I had already refer most of blogs for implement Aadhar card API in C#.Net, but unable to find appropriate solution for it.
Can you please help me regarding this issue.
Finally, I found the solution at aadhar birdge APIs.
Fully documented solution for Aadhar integration using seamless platform (Authentication and e-KYC and MOU) in your Desktop application and Android SDK and Android Sample Application with JSON request.

Is UWP / XAML C# compatible with the Spotify API?

I am learning development for Windows Universal Platform and I wanted to create a simple app capable of leveraging some Spotify data once the user logs in.
I can see from the documentation that there is an SDK for Android and iOS, and a library that is considered deprecated.
Do you guys know if there is any way for me to still communicate with the Spotify API using .NET/C# ?
Thanks a lot,
Florian
There doesn't seem to be a SDK from Spotify, but there are references to WebApi .Net Wrappers at the bottom of this official page:
Spotify Web API Wrapper on Codeplex
Spotify Web API Wrapper on GitHub

Categories

Resources