PayUMoney integration in Xamarin iOS - xamarin.forms

I'm implementing PayUMoney in Xamarin Forms. PayUMoney don't have any official SDKs for Xamarin so handling it natively using Hybrid Webview.
In Android it's working fine like I'm able to get Javascript callbacks on Success and Failure of the payment but in iOS, I'm not getting callbacks.
I don't know how should we write Javascript for this webview and evaluate it. I'm unable to find it after exploring.
It would be very helpful if anyone helps in this. Thanks

Related

How to implement Login with Google through Firebase within a .NET MAUI application

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

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

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

Integrate Twilio Chat feature in Xamarin Forms App

I’m currently developing a Xamarin Forms (to target both Android and iPhone) mobile application (code sharing strategy – .NET Standard) and I want to integrate Twilio Chat feature into it. While searching for related documents I have seen some posts (https://www.twilio.com/blog/2016/05/how-to-build-android-chat-apps-using-xamarin-and-twilio.html) and looks outdated. I have tried to add the "Twilio IP Messaging for Xamarin" package from Nuget but it's not listing out there. While searching I have found a similar package called "Twilio.Chat.Xamarin"(https://github.com/twilio/TwilioChatXamarinBindings) but it seems to be native and using shared code sharing strategy. Some of them say (https://github.com/twilio/twilio-chat-demo-android/issues/21#issuecomment-468183784) that support for .NET Standard is not available at the moment. Is this true? Are there any methods to integrate Twilio chat feature into .NET Standard Xamarin Forms project? It would be nice if you can share your thoughts or some links so that I can take a look.
Thanks
Got response from Twilio support:
Unfortunately, Twilio does not fully support Xamarin, our team has
authored Xamarin bindings which can be found here:
https://github.com/twilio/TwilioChatXamarinBindings. That being said,
Twilio Support can only provide support for our JS SDK which the
Xamarin bindings make use of.

Firebase Crash Reporting grouping most Xamarin.Android exceptions

I'm using Firebase Crash Reporting with Xamarin.Forms. I successfully implemented Firebase Crash on my Android app, but most exceptions end up grouped based on android.runtime.JavaProxyThrowable.
How can I fix this?
Firebase Crash Reporting does not support apps that are not built using native code and tools. It doesn't understand frameworks like Xamarin, so you can expect that it may not be very useful in those environments. On Android, it only really knows how to deal with native Java stack traces from native code running the app.

Resources