Whatfix 0.4.2

dotnet add package Whatfix --version 0.4.2
                    
NuGet\Install-Package Whatfix -Version 0.4.2
                    
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" Version="0.4.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Whatfix" Version="0.4.2" />
                    
Directory.Packages.props
<PackageReference Include="Whatfix" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Whatfix --version 0.4.2
                    
#r "nuget: Whatfix, 0.4.2"
                    
#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.
#:package Whatfix@0.4.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Whatfix&version=0.4.2
                    
Install as a Cake Addin
#tool nuget:?package=Whatfix&version=0.4.2
                    
Install as a Cake Tool

Integrate Whatfix SDK into your Xamarin.Android project

Prerequisites:

  • Android Studio
  • Android Min SDK version: 19
  • Xamarin.Forms - 4.8.+

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 sdk' in the search bar. Add both 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
protected override void OnCreate(Bundle savedInstanceState)
{
    base.OnCreate(savedInstanceState);
    var app = new App();
    LoadApplication(app);
    WhatfixSDK.WhatixSDK.Initialize(app, this, "<ent_name>", "<ent_id>"
       , "<screen_id>", segmentationOptions, whatfixOptions
    );
}

Note: 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.

WhatfixOptions:

Sdk.Whatfix.Common.WhatfixOptions whatfixOptions = new Sdk.Whatfix.Common.WhatfixOptions();
whatfixOptions.CdnHost = "test.whatfix.com";// Add this option to set your custom host to serve content.Default is [cdn.whatfix.com](http://cdn.whatix.com/)
whatfixOptions.StartEditor = false;// Set this option to true in order to start editor directly
whatfixOptions.DebugEnabled = true;// Set this option to true in order to enable seeing the extra logs on Logcat
whatfixOptions.EditorDisabled = false;// Set this option to true in order to disable invocation of editor

SegmentationOptions:

Sdk.Whatfix.Common.SegmentationOptions segmentationOptions = new Sdk.Whatfix.Common.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

Sdk.Whatfix.Whatfix.RefreshWindowVariable(segmentationOptions);// segmentationOptions can be passed at initialize. If using at any other place, 
                                                                  RefreshWindowVariable has to be called

TroubleShooting :

  • If operating the app inside VPN, kindly make sure that the domain “whatfix.com“ and any sub-domains are white-listed.

  • If you encounter any errors while compiling, kindly run Clean Build and then Build again.

  • Check the logs to see if Whatfix Logs are available and if SDK was successfully initialized.

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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.2 607 3/11/2022
0.4.1 494 3/11/2022
0.4.0 3,260 11/25/2021
0.3.9 373 11/19/2021
0.3.8 446 10/22/2021
0.3.7 394 10/8/2021
0.3.6 427 10/6/2021
0.3.5 400 9/8/2021
0.3.4 413 8/3/2021
0.3.3 416 6/23/2021
0.3.2 386 5/13/2021
0.3.1 407 4/26/2021
0.3.0 416 4/21/2021
0.2.9 435 3/18/2021
0.2.8 433 3/18/2021
0.2.7 482 3/9/2021
0.2.6 459 3/9/2021
0.2.5-alpha 334 1/8/2021
0.2.4-alpha 331 1/8/2021
0.2.3-alpha 330 12/30/2020
0.2.2-alpha 352 12/24/2020
0.2.1-alpha 366 12/23/2020
0.2.0-alpha 381 12/18/2020
0.1.9-alpha 385 12/18/2020
0.1.8-alpha 350 12/16/2020
0.1.7-alpha 351 12/16/2020
0.1.6-alpha 366 12/16/2020
0.1.5-alpha 369 12/15/2020
0.1.4-alpha 377 12/15/2020
0.1.2-alpha 405 12/10/2020
0.1.1-alpha 412 12/10/2020
0.1.0-alpha 344 12/10/2020
0.0.9-alpha 352 12/10/2020
0.0.8-alpha 307 12/10/2020
0.0.7-alpha 345 12/10/2020
0.0.6-alpha 338 12/7/2020
0.0.5-alpha 326 12/7/2020
0.0.4-alpha 344 12/7/2020
0.0.3-alpha 362 12/4/2020
0.0.2-alpha 343 12/3/2020
0.0.1-alpha 388 12/3/2020

Whatfix SDK for Xamarin Forms