Is it possible to add a photo in a Xamarin Forms cross platform application using only C#? - xamarin.forms

I'm trying to add a user profile picture in a Xamarin app, but I'm only finding deployments in Xamarin only for Android, is it possible to perform this addition on both platforms?

Related

How to fetch all the running app services on my device using xamarin forms?

I need to create a xamarin app that is able to fetch all the running app services on my device, and then force stop these apps by clicking on a certain button. Any ideas how?

Social Login in Xamarin Forms

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

iOS List of Installed Apps by User || XAMARIN FORMS

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.

Payments using Stripe on Xamarin Forms

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

Push Notification in Xamarin forms PCL Project

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

Resources