Apptentive.iOS 4.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Apptentive.iOS --version 4.1.0
NuGet\Install-Package Apptentive.iOS -Version 4.1.0
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="Apptentive.iOS" Version="4.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Apptentive.iOS --version 4.1.0
#r "nuget: Apptentive.iOS, 4.1.0"
#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 Apptentive.iOS as a Cake Addin
#addin nuget:?package=Apptentive.iOS&version=4.1.0

// Install Apptentive.iOS as a Cake Tool
#tool nuget:?package=Apptentive.iOS&version=4.1.0

Apptentive Xamarin iOS SDK

Register Apptentive

Register Apptentive in your Application class.

using ApptentiveSDK.iOS;

[Register("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
    public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
    {
        ...
    
        var configuration = new ApptentiveConfiguration("Your Apptentive Key", "Your Apptentive Signature");
        Apptentive.Register(configuration);

        return true;
    }
}

Make sure you use the Apptentive App Key and Signature for the iOS app you created in the Apptentive console. Sharing these keys between two apps, or using keys from the wrong platform is not supported, and will lead to incorrect behavior. You can find them here.

Message Center

See: How to Use Message Center

Showing Message Center

With the Apptentive Message Center your customers can send feedback, and you can reply, all without making them leave the app. Handling support inside the app will increase the number of support messages received and ensure a better customer experience.

Message Center lets customers see all the messages they have send you, read all of your replies, and even send screenshots that may help debug issues.

Add Message Center to talk to your customers.

Find a place in your app where you can add a button that opens Message Center. Your setings page is a good place.

public partial class ViewController : UIViewController
{
    ...
    
    public override void ViewDidLoad()
    {
        base.ViewDidLoad();

        MessageCenterButton.TouchUpInside += delegate
        {
            Apptentive.Shared.PresentMessageCenter(this);
        };
    }
}

Checking Unread Message Count

You can also check to see how many messages are waiting to be read in the customer’s Message Center.

var unreadMessageCount = Apptentive.Shared.UnreadMessageCount;
if (unreadMessageCount > 0)
{
    Console.WriteLine("You have {0} unread messages", unreadMessageCount);
}

Unread Message Count Notification

You can receive a callback when a new unread message comes in. You can use this callback to notify your customer, and display a badge letting them know how many unread messages are waiting for them. Because this listener could be called at any time, you should store the value returned from this method, and then perform any user interaction you desire at the appropriate time.

public partial class ViewController : UIViewController
{
    public override void ViewDidLoad()
    {
        base.ViewDidLoad();
        
        ...
        
        NSNotificationCenter.DefaultCenter.AddObserver(Constants.ApptentiveMessageCenterUnreadCountChangedNotification, (NSNotification obj) =>
        {
            UnreadMessagesTextView.Text = "Unread messages: " + Apptentive.Shared.UnreadMessageCount;
        });
    }
}

Events

Events record user interaction. You can use them to determine if and when an Interaction will be shown to your customer. You will use these Events later to target Interactions, and to determine whether an Interaction can be shown. You trigger an Event with the Engage() method. This will record the Event, and then check to see if any Interactions targeted to that Event are allowed to be displayed, based on the logic you set up in the Apptentive Dashboard.

var engageButton = FindViewById<Button>(...);
engageButton.Click += delegate
{
    Apptentive.Shared.Engage("my_event", this); // assuming 'this' is a ViewController
};
Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Apptentive.iOS:

Package Downloads
Plugin.Maui.Apptentive

Maui Plugin for Apptentive SDK

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.8.1 118 6/5/2024
6.7.2 141 4/26/2024
6.7.1.1 97 4/25/2024
6.7.1 81 4/24/2024
6.7.0 72 4/24/2024
6.1.0 33,329 2/9/2023
6.0.3.5 6,315 6/23/2022
6.0.3.4 437 6/23/2022
6.0.3.3 448 6/23/2022
6.0.3.2 438 6/23/2022
6.0.3.1 450 6/23/2022
6.0.3 426 6/22/2022
6.0.0.1 413 5/6/2022
6.0.0 436 5/5/2022
5.3.2 13,863 8/3/2021
5.3.1 5,059 9/16/2020
5.2.14 12,201 7/9/2020
5.2.8 4,847 9/19/2019
5.2.7 614 9/18/2019
5.2.6 646 9/6/2019
5.2.5 7,120 2/21/2019
5.2.4 736 2/18/2019
5.2.3 982 12/3/2018
5.1.0 5,652 5/14/2018
5.0.0 1,255 1/23/2018
4.1.0 1,685 11/9/2017

Apptentive iOS SDK: 4.1.0