Xamarin

Start from template

11min

Start your Xamarin project using a pre built template

Introduction

In this section you learn how to get started with a Visual Studio template and get ready to use Back4App in 5 easy steps.

Prerequisites

To complete this quickstart, you need:

1 - Get the template

Download the template at Back4App’s GitHub repository.

You can do that using the following command line:

$ curl -LOk https://github.com/back4app/xamarin-quickstart-example/archive/master.zip && unzip master.zip

2 - Open the project template

  1. Open Visual Studio.
  2. Click on Open Project / Solution
Document image


3. Navigate to the project folder and click on Open.

Document image


3 - Install Required NuGet Packages

We need some additional libraries for this example. We will get them through Nuget Packages.

  1. Right click on App’s name in the Solution Explorer and click on Manage NuGet Packages....
Document image


2. Press on Browse, search and install the packages parse by Parse and Xamarin.Android.Support.v7.AppCompat by Xamarin Inc..

Document image


3. Wait for the installations to complete.

4 - Setup app’s credentials

Update your strings values to set up the app’s credentials. Parse Xamarin SDK uses these settings to connect to the Back4App servers.

  1. Open your strings file: .../App1/Resources/values/strings.xml
Document image


2. Go to your App Dashboard at Back4App website.

3. Navigate to app’s settings: Click on Features > Core Settings and press Settings.

4. Return to your strings.xml file and paste your applicationId and dotNetKey.



5 - Testing your connection

  1. Build your app in a device or virtual device ( Shift + F10).
Document image


2. Wait until the Hello World! screen appears as below.

Document image


3. Login at Back4App.

4. Find your app and click on Dashboard.

5. Click on Core.

6. Go to Browser.

If everything works properly, you should find a class named Installation as follows:

Document image


Next Steps

At this point, you have learned how to get started with Android apps. You are now ready to explore Parse Server core features and Back4App add-ons.

Learn more by walking around Parse open source documentation for .NET SDK.