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
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. |
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()); HelpshiftCampaigns.RequestUnreadMessagesCount();