解析到Clevertap转换



我正在尝试将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。

谢谢你的帮助

您可以在这里找到Parse迁移指南- https://github.com/CleverTap/parse-migrate,通道在这里讨论- https://github.com/CleverTap/parse-migrate#managing-channels。如果你需要更多帮助,或者有任何问题,请写信给support@clevertap.com。

最新更新