/**
 Setup Pyze
 Xamarin App  */

Go back to Xamarin Getting Started Guide

Pyze Xamarin App SDK: Setup & Initialize

The instructions on this page assume you have installed the Pyze SDK into your Xamarin project. If not, Install the SDK and come back to this page. See Getting Started Xamarin Guide.

Modify the Android Manifest

Add following tag under application tag of the manifest:

<meta-data android:name="PyzeAppKey" android:value="Use PyzeAppKey from growth.pyze.com" />

Ensure that the following Permissions are specified in the manifest:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

Modify the Main Activity of Your Project

Add the following import statement in the Main Activity:

using pyze.xamarin.android;

Add the following Pyze.initialize statement in the Main Activity's onCreate method:

public void onCreate(Bundle savedInstanceState) {
    //
    //
    //...
       Pyze.initialize(this);

    // Alternatively you can pass the log throttling setting as the second parameter.
    // Ex: Pyze.Initialize(this, PyzeLogLevel.All);
}

Build and Go!

Go back to Xamarin Developer Center to follow the next steps.


About Pyze

Pyze Growth Intelligence® is a transformative SaaS platform that enables mobile and web app businesses to automate engagement, retention and growth of their users. Signup at Pyze, install and initialize the Pyze SDK and watch your app grow.