Posts

Showing posts from June, 2022

Push Notification using Firebase in xamarin form (Android and IOS)

Image
Push Notification using Firebase in xamarin form (Android and IOS) Please, support my blog by clicking on our sponsors ad! Watch video to understand the code: https://youtu.be/1Ixc_B86mDk Follow steps to create push notification in both project. Create Project in  https://console.firebase.google.com/ Create Project for push notification After Creating Project add app for both IOS and Android Project. Create app in project For Both IOS and Android project add Package name. Package name should be same as your package name in Xamarin Android and IOS Project. Click on Register App Download Google Service json. If you are in android app then download google-services.json else if you are in ios app then download "GoogleService-Info.plist" file Click Next then click Next then Click Continue to console button. We have created project in firebase console now we will continue coding in xamarin. In Android Project add Internet Permission. Right click on android project ->

Upload Image in Xamarin Form

Image
  Upload image in xamarin form   Get fontawesome code from   here First we will add control. ChoosePhotoControl.Xaml <ContentView xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SchoolUIDesigns.Control.ChoosePhotoControl"> <ContentView.Content> <Grid RowDefinitions="Auto,Auto" ColumnDefinitions="Auto"> <Label x:Name="lblFontawesomeText" FontFamily="{StaticResource FontAwesomeSolid}" FontSize="40" HorizontalOptions="Center" Grid.Row="0" TextColor="#08457E"></Label> <Label x:Name="lblText" TextColor="Black" Grid.Row="1" HorizontalOptions="Center" FontSize="14"></Label> </Grid> </ContentView.Content> </ContentView> ChoosePhotoControl.x

Tips and Tricks in Xamarin Forms

 Hi Developer, I hope all you are fine. Lets start with tips and tricks for xamarin form which will be useful for you. For better understand please watch video . RefreshView The Refreshview  is a container control that provides pull to refresh functionality for scrollable content.  This control will work if you have use scrollview. sometime we use only listview or collectionview which does not required scrollview, if we use scrollview the it will show space at the bottom of the page.so simply write below code: <RefreshView x:Name="refreshView" Refreshing="refreshView_Refreshing"> <ScrollView x:Name="MainScroll"> <ContentView HeightRequest="{Binding Source={x:Reference MainScroll},Path=Height}"> <!---- Your UI Design--> </ContentView> </ScrollView> </RefreshView> Activity Indicator Refreshview show loader on top of the pa