Whatfix 0.4.2
dotnet add package Whatfix --version 0.4.2
NuGet\Install-Package Whatfix -Version 0.4.2
<PackageReference Include="Whatfix" Version="0.4.2" />
paket add Whatfix --version 0.4.2
#r "nuget: Whatfix, 0.4.2"
// Install Whatfix as a Cake Addin #addin nuget:?package=Whatfix&version=0.4.2 // Install Whatfix as a Cake Tool #tool nuget:?package=Whatfix&version=0.4.2
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 | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid90 is compatible. |
-
MonoAndroid 9.0
- MvvmCross (>= 7.0.0)
- MvvmCross.Plugin.Messenger (>= 7.0.0)
- Whatfix.Android (>= 0.2.4)
- WhatfixMvvmCross.Forms (>= 0.0.5)
- Xamarin.Android.Arch.Core.Common (>= 1.1.1.3)
- Xamarin.Android.Arch.Core.Runtime (>= 1.1.1.3)
- Xamarin.Android.Arch.Lifecycle.Common (>= 1.1.1.3)
- Xamarin.Android.Arch.Lifecycle.LiveData (>= 1.1.1.3)
- Xamarin.Android.Arch.Lifecycle.LiveData.Core (>= 1.1.1.3)
- Xamarin.Android.Arch.Lifecycle.Runtime (>= 1.1.1.3)
- Xamarin.Android.Arch.Lifecycle.ViewModel (>= 1.1.1.3)
- Xamarin.Android.Support.Animated.Vector.Drawable (>= 28.0.0.3)
- Xamarin.Android.Support.Annotations (>= 28.0.0.3)
- Xamarin.Android.Support.AsyncLayoutInflater (>= 28.0.0.3)
- Xamarin.Android.Support.Collections (>= 28.0.0.3)
- Xamarin.Android.Support.Compat (>= 28.0.0.3)
- Xamarin.Android.Support.CoordinaterLayout (>= 28.0.0.3)
- Xamarin.Android.Support.Core.UI (>= 28.0.0.3)
- Xamarin.Android.Support.Core.Utils (>= 28.0.0.3)
- Xamarin.Android.Support.CursorAdapter (>= 28.0.0.3)
- Xamarin.Android.Support.CustomTabs (>= 28.0.0.3)
- Xamarin.Android.Support.CustomView (>= 28.0.0.3)
- Xamarin.Android.Support.Design (>= 28.0.0.3)
- Xamarin.Android.Support.DocumentFile (>= 28.0.0.3)
- Xamarin.Android.Support.DrawerLayout (>= 28.0.0.3)
- Xamarin.Android.Support.Fragment (>= 28.0.0.3)
- Xamarin.Android.Support.Interpolator (>= 28.0.0.3)
- Xamarin.Android.Support.Loader (>= 28.0.0.3)
- Xamarin.Android.Support.LocalBroadcastManager (>= 28.0.0.3)
- Xamarin.Android.Support.Media.Compat (>= 28.0.0.3)
- Xamarin.Android.Support.Print (>= 28.0.0.3)
- Xamarin.Android.Support.SlidingPaneLayout (>= 28.0.0.3)
- Xamarin.Android.Support.SwipeRefreshLayout (>= 28.0.0.3)
- Xamarin.Android.Support.Transition (>= 28.0.0.3)
- Xamarin.Android.Support.v4 (>= 28.0.0.3)
- Xamarin.Android.Support.v7.AppCompat (>= 28.0.0.3)
- Xamarin.Android.Support.v7.CardView (>= 28.0.0.3)
- Xamarin.Android.Support.v7.RecyclerView (>= 28.0.0.3)
- Xamarin.Android.Support.Vector.Drawable (>= 28.0.0.3)
- Xamarin.Android.Support.VersionedParcelable (>= 28.0.0.3)
- Xamarin.Android.Support.ViewPager (>= 28.0.0.3)
- Xamarin.Forms (>= 4.8.0.1687)
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 | 516 | 3/11/2022 |
0.4.1 | 414 | 3/11/2022 |
0.4.0 | 3,183 | 11/25/2021 |
0.3.9 | 294 | 11/19/2021 |
0.3.8 | 365 | 10/22/2021 |
0.3.7 | 315 | 10/8/2021 |
0.3.6 | 346 | 10/6/2021 |
0.3.5 | 320 | 9/8/2021 |
0.3.4 | 335 | 8/3/2021 |
0.3.3 | 338 | 6/23/2021 |
0.3.2 | 306 | 5/13/2021 |
0.3.1 | 321 | 4/26/2021 |
0.3.0 | 327 | 4/21/2021 |
0.2.9 | 348 | 3/18/2021 |
0.2.8 | 347 | 3/18/2021 |
0.2.7 | 396 | 3/9/2021 |
0.2.6 | 372 | 3/9/2021 |
0.2.5-alpha | 245 | 1/8/2021 |
0.2.4-alpha | 244 | 1/8/2021 |
0.2.3-alpha | 244 | 12/30/2020 |
0.2.2-alpha | 264 | 12/24/2020 |
0.2.1-alpha | 274 | 12/23/2020 |
0.2.0-alpha | 291 | 12/18/2020 |
0.1.9-alpha | 295 | 12/18/2020 |
0.1.8-alpha | 259 | 12/16/2020 |
0.1.7-alpha | 259 | 12/16/2020 |
0.1.6-alpha | 278 | 12/16/2020 |
0.1.5-alpha | 277 | 12/15/2020 |
0.1.4-alpha | 288 | 12/15/2020 |
0.1.2-alpha | 312 | 12/10/2020 |
0.1.1-alpha | 324 | 12/10/2020 |
0.1.0-alpha | 255 | 12/10/2020 |
0.0.9-alpha | 259 | 12/10/2020 |
0.0.8-alpha | 217 | 12/10/2020 |
0.0.7-alpha | 254 | 12/10/2020 |
0.0.6-alpha | 245 | 12/7/2020 |
0.0.5-alpha | 234 | 12/7/2020 |
0.0.4-alpha | 253 | 12/7/2020 |
0.0.3-alpha | 274 | 12/4/2020 |
0.0.2-alpha | 252 | 12/3/2020 |
0.0.1-alpha | 296 | 12/3/2020 |
Whatfix SDK for Xamarin Forms