Start a new topic

Create CrossPlatform App in Xamarin.form

Xamarin for Visual Studio 2019,

Xamarin.Wikitude.SDK.JS 9.2

Hello, Wikitude Team!

I once made an AR app using Wikitude in Unity.

This time, I'm going to make an AR app using Xamarin.

 Tutorial makes a project using the Blank Native App instead of using Xamarin.form and explains it.

  But, I want to make an application that can be used in both Android and IOS using Xamarin.form. 


1. Can I create an Android and IOS app together using Wikitude in Xamarin.form? 

2. If it is impossible, should the application for Android and IOS be made in each project?

3. The blank project installed Wikitude.SDK.JS. How do I get an AR tracker from MainActivity.cs?


using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace GarageRim_Sample.Droid
    [Activity(Label = "GarageRim_Sample", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )]
    public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
        protected override void OnCreate(Bundle savedInstanceState)
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;


            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
            Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

            base.OnRequestPermissionsResult(requestCode, permissions, grantResults);



 Documentation only describes the JavaScript API. I read the code after getting the sample application and running it, but it is hard to understand at my level.

But I have little experience using Xamarin, so it's hard to understand the Tutorial offered by Wikitude.

Can I get a simple form to use Wikitude's API in an empty project?

Best regards.

Login or Signup to post a comment