Whatfix.Android
0.2.5
dotnet add package Whatfix.Android --version 0.2.5
NuGet\Install-Package Whatfix.Android -Version 0.2.5
<PackageReference Include="Whatfix.Android" Version="0.2.5" />
paket add Whatfix.Android --version 0.2.5
#r "nuget: Whatfix.Android, 0.2.5"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
-
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 | 482 | 5/4/2022 |
0.2.4 | 438 | 3/11/2022 |
0.2.3 | 2,971 | 11/25/2021 |
0.2.2 | 322 | 11/19/2021 |
0.2.1 | 357 | 10/22/2021 |
0.2.0 | 334 | 10/6/2021 |
0.1.9 | 365 | 9/8/2021 |
0.1.8 | 373 | 9/8/2021 |
0.1.7 | 336 | 8/4/2021 |
0.1.6 | 338 | 8/4/2021 |
0.1.5 | 351 | 8/3/2021 |
0.1.4 | 349 | 6/23/2021 |
0.1.3 | 340 | 5/13/2021 |
0.1.2 | 365 | 4/26/2021 |
0.1.1 | 370 | 4/21/2021 |
0.1.0 | 336 | 3/18/2021 |
0.0.9 | 390 | 3/9/2021 |
0.0.7 | 401 | 1/22/2021 |
0.0.6 | 347 | 1/22/2021 |
0.0.5-alpha | 235 | 1/8/2021 |
0.0.4-alpha | 194 | 12/30/2020 |
0.0.3-alpha | 263 | 12/24/2020 |
0.0.2-alpha | 298 | 12/23/2020 |
0.0.1-alpha | 274 | 12/11/2020 |
Whatfix Library for Xamarin.Android