我正在尝试在我正在处理的应用程序中将 Parse 转换为 Clevertap。我曾尝试查看https://blog.clevertap.com/transitioning-from-parse-push-notifications/,但对我想要完成的事情并没有太多运气。
在需要转换的方法中,我希望用户能够使用以下方式订阅和取消订阅频道:
private class AllPushClickListener implements View.OnClickListener {
private AppFeed mAppFeed;
public AllPushClickListener(AppFeed appFeed) {
mAppFeed = appFeed;
}
@Override
public void onClick(View v) {
Log.d(TAG, "subscribing to " + getPushChannelName(mAppFeed) + "_all");
ParsePush.unsubscribeInBackground(getPushChannelName(mAppFeed) + "_top");
ParsePush.subscribeInBackground(getPushChannelName(mAppFeed) + "_all");
mAppFeed.setPushNotificationsOn(true);
mAppFeed.setReceiveTopNotifications(false);
mAppFeed.setChannelName(getPushChannelName(mAppFeed) + "_all");
hideNotificationButtons();
mPushAllStoriesSelectedButton.setVisibility(View.VISIBLE);
mPersistedFeedDaoHelper.createOrUpdate(mAppFeed);
}
}
不知道如何将其转换为 Clevertap。
谢谢您的帮助。