How can I implement Login with Facebook & Login with Google in Xamarin forms using native code for Android & iOS?
I don't want to use a plugin. I want to use dependency service to implement native code in both Android & iOS in Xamarin Forms Project.
Well it's a pretty open question but you basically need to (atleast for the google login use firebase ):
Setup a new project in firebase with Authentication
Add nuget Xamarin.firebase.iOS.auth to your iOS project and xamarin.firebase.auth to your android project
create an interface in your shared code call it IFirebaseAuthentication
Implement the interface on each platform
Use your auth module with DependencyService.Get<IFirebaseAuthentication>(); from the shared code
You will find more details on step 1 and 4 here
https://www.lindseybroos.be/2020/03/xamarin-forms-and-firebase-authentication/
Happy coding
Related
I am developing a .NET MAUI app for use on iOS, Android, and Windows devices.
In general, I have found that the documentation on Firebase to be lacking when integrating within any .NET application. In particular, given the quick rise of .NET Maui's popularity, I don't see any advice with regard to allowing my MAUI app to add Firebase authentication via Login with Google or Facebook. Maybe the documentation hasn't caught up yet?
Here is a screenshot the the project settings in my Firebase project.
Do I need to configure an Android app and then an iOS here for Google login?
If there is anyone who has accomplished this for .NET MAUI and could provide some guidance, I'd be all ears.
I am currently following a Xamarin tutorial here: https://www.youtube.com/watch?v=NYMCrD9klA0
I am creating an iOS application using Xamarin Forms which is a copy of an Android application written in Kotlin.
There is a section that lists all the applications installed in the current device by the user. I want to implement the same functionality in the iOS application too.
Is it possible to get the applications list in iOS through Xamarin Forms?
This is impossible on iOS and it is not possible on Android either if you target latest API levels, so in some future when those API levels become required on Google Play you won't be able to do this.
This is a huge privacy issue, as having the list of apps may reveal something very personal and private and as soon as the app has it there is nothing that prevents it to send the info to the 3rd party server.
I am stuck... I was under the impression using Stripe in a Xamarin Forms application was easy, but that doesn't seem to be the case any more.
I have a Xamarin Forms (both Android and iOS) app that I want to integrate with Stripe for payments. I have an API which creates a Payment intent, submits the amount and currency etc using the Stripe.net NuGet extension, and returns a client secret... but it turns out, there is no Stripe client available to use this client secret.
There are Android and iOS native elements controls which I should be able to somehow include in my Xamarin Forms application or the use of a webview and using stripe.js.
Can anyone tell me which of these two options is most suitable? I have never used binding for including Android and iOS packages (I'm not clued up on the individual platforms) and the webview seems to me to be a poor UX... I'm only speculating, because I don't know... I'm hoping there is someone on here who has experience with Xamarin FOrms and Stripe who can point me in the right direction.
Thanks
Is there a way to achieve SSO in Xamarin forms app. I have done some basic research and have zeroed down on 2 approaches for Authenticating my enterprise apps.
1.) Use microsoft company portal intune. For this I would be creating a new sample app, registering it in Azure AD, configure InTunes in Azure, installing Microsoft Authenticator,use InTune nuget packages for Xamarin forms side of code.
For this do we have any steps on how to achieve the same or some head way, regarding app registration and configuration in InTune, configuration of new URI for app, code changes at App end, in order to invoke Authenticator, code snippets for Xamarin Forms and not for Native apps.
2.) Leverage Service Broker. I had found this link, which expands on the same, but could not get any ADAL DLL's to achieve the same.
So do we have any concrete or recommended approaches in achieving SSO with microsoft authenticators for Xamarin Forms Apps, would be glad to know more.
Thanks In Advance!!!..
I have created a Xamarin Forms PCL Project.
I have a SQL Server database and when my database table is updated, I want to generate a Push Notification for my Android as well as IOS Application.
I don't want to request the table again and again. Is there any other way?
I recommend using the azure but if you do not want to pay, uses Onesignal is free and works for android and ios.
For onesignal, here is a tutorial:
https://julianocustodio.com/2017/11/21/onesignal-push-notification/
You need to write background service in android & iOS which will keep checking the table in database after fixed intervals of time and will generate notifications from it.
Also you need dependency service so that you can call platform specific services from Xamarin.Forms