Whatfix.Android 0.2.5

dotnet add package Whatfix.Android --version 0.2.5                
NuGet\Install-Package Whatfix.Android -Version 0.2.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Whatfix.Android" Version="0.2.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Whatfix.Android --version 0.2.5                
#r "nuget: Whatfix.Android, 0.2.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Whatfix.Android as a Cake Addin
#addin nuget:?package=Whatfix.Android&version=0.2.5

// Install Whatfix.Android as a Cake Tool
#tool nuget:?package=Whatfix.Android&version=0.2.5                

Integrate Whatfix SDK into your Xamarin.Android project

Prerequisites:

  • Android Min SDK version: 19

Step 1: Obtain the packages from NuGet.

The package is available on NuGet on this Whatfix.

In your Xamarin.Android project, Right Click on Packages. Select Manage NuGet Packages in the context menu. Search for 'Whatfix.Android' in the search bar. Add the Whatfix package to the library.

Step 2: Select the version of the SDK

In the Nuget Package Installer, Select the latest version of the SDK in the New version dropdown.

Step 3: Add Initialize in MainActivity.cs file.

//Xamarin.Android

using Sdk.Whatfix;
using Sdk.Whatfix.Common;
using Sdk.Whatfix.Common.Model;

protected override void OnCreate(Bundle savedInstanceState)
{
    base.OnCreate(savedInstanceState);
    var app = new App();
    LoadApplication(app);
    WhatfixOptions whatfixOptions = new WhatfixOptions();
    SegmentationOptions segmentationOptions = new SegmentationOptions();
    Whatfix.Initialize(this, "<ent_name>", "<ent_id>", 
    AppType.Xamarin.Ordinal(), segmentationOptions, whatfixOptions);
    
    
    // IMP : To manage/detect screen changes
              app.PageAppearing += (s, e) =>
                {
                    if (!e.ToString().Contains("NavigationPage"))
                    {
                        Whatfix.ReInitScreen(e.ToString());
                    }
                };

                app.PageDisappearing += (s, e) =>
                {
                    if (!e.ToString().Contains("NavigationPage"))
                    {
                        Whatfix.DeInitScreen(e.ToString());
                    }
                };
}

Replace <ent_id> and <ent_name> with your Whatfix account ID. To get your ENT ID & ENT_NAME, email us at support@whatfix.com or get in touch with your Account Manager.

If the above screen change detection doesn’t give consistent events for all Pages. Replace with the below snippet:

 app.PageAppearing += (s, e) =>
                {
                    if (!e.ToString().Contains("NavigationPage"))
                    {
                      Whatfix.SetScreenId(e.ToString());
                    }
                };

                app.PageDisappearing += (s, e) =>
                {
                  //Do nothing
                };

Advanced Initialization Options

WhatfixOptions whatfixOptions = WhatfixOptions();
whatfixOptions.CdnHost = "cdn.whatfix.com"; // Add this option to set your custom host to serve whatfix content.Default is [cdn.whatfix.com](http://cdn.whatix.com/)
whatfixOptions.StartEditor = false; // Set this option to true only to invoke Whatfix Mobile editor directly on a custom callback.
whatfixOptions.DebugEnabled = true; // Set this option to true in order to enable all debug logs on Logcat
whatfixOptions.EditorDisabled = false; // Set this option to true in order to disable invocation of editor in the production builds

Extra (optional) configurations for Segmenting Whatfix content based on User info, Localisation, etc.


SegmentationOptions segmentationOptions = new SegmentationOptions();

segmentationOptions.LoggedInUserId = "john_doe"; // Add this option to set the current user id for analytics
segmentationOptions.LoggedInUserRole = "manager"; // Add this option to set the current user role from your app
segmentationOptions.Language = "fr"; // Add this option to set the current user language preference

IDictionary<string, string> map = new Dictionary<string, string>();
map.Add("xamarin_key", "xamarin_value");
segmentationOptions.CustomKeyValue = map; // Add this option to set custom window variables for advanced segmentation (e.g. `["user_type":"paid"]`)

Whatfix.RefreshWindowVariable(segmentationOptions); // segmentationOptions can be passed at initialize. If using at any other place  RefreshWindowVariable has to be called
Product Compatible and additional computed target framework versions.
MonoAndroid monoandroid90 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • MonoAndroid 9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Whatfix.Android:

Package Downloads
Whatfix

A Digital Adoption Platform (DAP) is an in-application interactive guidance solution that can be provided as contextual training, help and on-screen guidance for employees or your end-users.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.5 484 5/4/2022
0.2.4 441 3/11/2022
0.2.3 2,974 11/25/2021
0.2.2 325 11/19/2021
0.2.1 360 10/22/2021
0.2.0 337 10/6/2021
0.1.9 368 9/8/2021
0.1.8 376 9/8/2021
0.1.7 339 8/4/2021
0.1.6 341 8/4/2021
0.1.5 354 8/3/2021
0.1.4 352 6/23/2021
0.1.3 343 5/13/2021
0.1.2 368 4/26/2021
0.1.1 373 4/21/2021
0.1.0 339 3/18/2021
0.0.9 393 3/9/2021
0.0.7 404 1/22/2021
0.0.6 350 1/22/2021
0.0.5-alpha 236 1/8/2021
0.0.4-alpha 195 12/30/2020
0.0.3-alpha 264 12/24/2020
0.0.2-alpha 299 12/23/2020
0.0.1-alpha 275 12/11/2020

Whatfix Library for Xamarin.Android