Implement Mastercard Gateway Android SDK in Xamarin.Forms - xamarin

I am trying to implement the Mastercard Gateway Android SDK in Xamarin.Forms but according to the documentation I need to edit the gradle.properties file which is not present in Xamarin.Forms. Is it possible for me to implement this SDK and if so how? What nuget packages do I need? I currently have the Com.MasterCard.Sdk, Com.Mastercard.Psp.Payment and MasterCard.Core packages I'm using Visual Studio 2019
EDIT: The payment gateway in question: https://github.com/Mastercard-Gateway/gateway-android-sdk

Related

Xamarin.Android Adyen Integration & Bindings Library .aar

Hello colleagues developers,
I'm currently developing a Xamarin Form app that requires the integration of a Payment Service Provider. My company requires that I use Adyen as the PSP.
Adyen itself doesn't provide any information on Xamarin integration. Information exist for Android and IOS but can't find anything for Xamarin forms / Xamarin.Android.
I've created a Bindings Library (android).
I've added the.aar file provided by Adyen into it.
Then I built it with the LibraryProjectZip property but after adding the reference to my Xamarin.android project, I can't use any methods that should be in it...
I've tried this process with another .aar and everything went fine...
Does any of you have already integrated Adyen in a Xamarin form / Xamarin.android app ?
Thanks in advance,
Noste

GCM to FCM for Xamarin

Xamarin has the predefined support to GCM (Google Cloud Messaging) which was explained in https://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/remote_notifications_in_android/
As currently Google migrated from GCM to FCM (Firebase Cloud Messaging) does it work with Xamarin with same instruction or there any other Docs for integrating FCM with Xamarin?
Does all features provided in Firebase can be used in Xamarin App?
does it work with Xamarin with same instruction?
No, it doesn't. But you can still work with GCM since Google hasn't announced that GCM support will stop just now. They just posted that FCM is the newest version of GCM.
there any other Docs for integrating FCM with Xamarin?
Not just yet, Xamarin doesn't have a guide about how to integrate FCM with your Xamarin.Android app.
Does all features provided in Firebase can be used in Xamarin App?
Yes, they can be used with Xamarin. But at this moment we have to wait until Xamarin provides us with official bindings(dlls) for FCM java libraries(jars) and probably they will post something in their blog about how to integrate this with our apps.
At this point, the best thing you can do while developing with Xamarin is use GCM. The other thing you can do, is create your own bindings with FCM java libraries and use Google's tutorial for android (in java)
While the last option will probably work, when the official Xamarin bindings come you will have to change a lot of code in order to make it work with upcoming updates from Google and Xamarin.
EDIT: as pointed out by #SørenBoisen Xamarin has started to rollout official(pre-release) bindings via nugget: https://www.nuget.org/packages/Xamarin.Firebase.Common/
More info at: Support for Google Firebase — Xamarin Forums
The Firebase bindings are now available for Xamarin Android as a nuget package here:

How to manually install Xamarin.Android without Xamarin account?

As I was already developing Android apps, JDK 8 and Android SDK are already installed in my machine. But it is in a custom location, not the default one. Using the default Visual Studio installer, I could not install Xamarin without installing JDK and Android SDK again in the default location. Then I tried to install Xamarin.Android manually according to instructions in this page-
https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/
This page instructed to download and install Xamarin.Android from store. But Xamarin store requires an account, which I assume to manage the paid subscriptions. Given Xamarin is free now, how should I proceed to install Xamarin.Android manually and reuse already installed Android components?
You can contact us at contact#xamarin.com and we will send you the latest download links to the Xamarin.VisualStudio installer which includes both Xamarin.Android and Xamarin.iOS (there is no separate installer per platform for Windows).
The Xamarin.VisualStudio installer does not attempt to install the JDK or Android SDK, so this sounds like what you need.

Google Wallet / Android Pay integration in Xamarin Forms

I have Xamarin project targeting both Android and iOS platforms using Xamarin.Forms. I searched but I can't find an answer or any information about that.
Is there any way I can integrate Google Wallet / Android Pay in my project and what are my options.
can't you use Xamarin.InAppBillin
check this enter link description here

Azure Mobile Services Component not found in Xamarin Component Store

I'm working with Xamarin plugin in Visual Studio 2013.
I have an iOS app and I want to add the Azure Mobile Services client component to that app. But when I click "Get more components" and search for the component in the store, it is not found.
I tried doing the same from the Xamarin Studio on my mac and the component is there.
Is this a bug or am I doing something wrong?
Update
The component is now available in the component store for unified api projects. It became available 1 day after I asked my question :-)
My guess is that you are trying to add it to an iOS Classic project on the Mac with Xamarin Studio but using an iOS Unified project on Windows with Visual Studio.
Looking at the Xamarin Component Store the Azure Mobile Services client is currently only available for iOS Classic projects. You can see that by the tags. It has an ios tag but not an ios-unified tag.
Xamarin Studio will not show the component when you click Get more components if it is incompatible with the current project.

Resources