Showing posts with label Xamarin.iOS. Show all posts
Showing posts with label Xamarin.iOS. Show all posts

Payment gateway integration in Xamarin Form .Net MAUI using RazorPay

Brief: In this post we can see how to integrate payment gateway using RazorPay in Xamarin form for iOS and Android.




Description: 

Right now i'm seeing very limited support for Xamarin with payment SDK from the top payment gateway providers like Stripe,RazorPay,PayU,JustPay. Few are providing the SDK but that is outdated and not supporting in the latest version. 

Image Gallery Control using Xamarin Form

Brief: Implementation of Custom gallery control for Xamarin Form explained in a simple steps.


Description: If you have a plan to display image in gallery or in grid format for your Xamarin.Form application then you are in right place now.
You should be able to do so in next 15-20 minutes :). This implementation targets both android and iOS. Now quickly go through with steps.

Force Landscape or Portrait for a single page in Xamarin Form.

Device screen orientation in xamarin is usually configured from Host(Android/iOS) project as suggested here . But what if i need to change the screen orientation of one particular screen(say to landscape) in xamarin form and other screens are different (may be portrait), to do so there is no direct options available from xamarin form.
We will do the configuration in host project for the common screen orientation required throughout the application, to do any changes for particular screen need to touch back to the host project settings again because as of now there is no wrapper Form level API’s available. 

For example consider the scenario that my Form project contains the Five screens out of that, for Third screen i need give support for both Portrait and Landscape and for all other remaining screen only in portrait. This can be done in android as follows,

Use the MessageCenter class to send the message from the Form screen for which orientation need to be changed and receive the same from Android MainActivity class.

ThirdPage.xamal.cs
  public partial class ThirdPage : ContentPage
    {
        protected override void OnAppearing()
        { 
            base.OnAppearing(); 
           MessagingCenter.Send(this, "allowLandScapePortrait”);
        }
         //during page close setting back to portrait
        protected override void OnDisappearing()
        {
            base.OnDisappearing(); 
            MessagingCenter.Send(this, "preventLandScape");
        }
    }

Error retrieving parent for item: No resource found that matches the given name...

This is the one of the frequent error we will get during Xamarin android/Form development. Here i have posted the resolution steps for this error in both windows and Mac machines:

SQLite Async operation in Xamarin.iOS application

In Brief: 
SQLite is the most widely used backend for Android and iOS mobile application. SQLite is a light weight relational database stores a data to a text file on a device.In this post i'll create a sample iOS application to perform an Async SQLite CRUD operations.

Sliding menu in Xamarin.iOS using GestureRecognizer,CATransition and Animation

In Brief:  Here I'm going through the steps involved in the Implementation of Sliding or Fly in-out menu or How to  making use of Gesture-recognizer, CATransition and Animation in Xamarin.iOS.


Xamarin.iOS Location Autocomplete by using Google Place API

In brief: 
Making use of Google place API to provide the Location auto-complete option with text field in Xamarin iOS.


Xamarin iOS Draw Route between two Geo-location in Google map using Direction api

In brief : Drawing path between two intended location using google direction api over google map in xamarin iOS.

Login by google account integration for Xamarin.Android and Xamarin.iOS

Brief: 
Google Account integration to the app, helps for the user authentication using their existing Google account and fetch profile information like email id,name and profile pic etc.
UPDATE: Mar 10,2017: It seems that google has been stopped webview approach for native applications. You can refer the solution provided by the xamarin doc.