Upgrading from 1.7.0 to 1.8.0

The Helpshift SDK v1.8.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
HelpshiftCocos2dx::getCountOfUnreadMessages(); HelpshiftCocos2dx::requestUnreadCampaignsMessagesCount(*unreadCampaignsMessageCountHandler)
static void showAlertToRateApp (const char url, void (action) (int result)) No Replacement API. An explanation of why we made this change can be found here.

Show count of unread campaign messages

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

Example Code:

void unreadCampaignsMessageCountHandler(int cnt) {
    printf("Unread campaigns message count: %d\n", cnt);