Upgrading from 2.4.0 to 2.5.0

The Helpshift SDK v2.5.0 is a major update and we have deprecated some APIs. If you have questions or feedback, please Contact Us

List of deprecated APIs

Deprecated API New API
HelpshiftCampaigns.CountOfUnreadMessages(); HelpshiftCampaigns.RequestUnreadCampaignsMessagesCount()
HelpshiftSupport.ShowAlertToRateApp(string url, Object rateAppListener) No Replacement API. An explanation of why we made this change can be found here.

Show count of unread campaign messages

On SDK version 2.5.0, you can retrieve the unread campaigns messages count and display the count as shown below:

Example Code:

public class CustomCampaignsDelegate : InternalHsApiDefinition.HelpshiftCampaignsDelegate
    public override void DidReceiveUnreadMessagesCount(nint count)
        // Your code here

HelpshiftCampaigns.SetCampaignsDelegate(new CustomCampaignsDelegate());