gpt4 book ai didi

java - 解析到 Clevertap 转换

转载 作者:太空宇宙 更新时间:2023-11-04 12:05:33 25 4
gpt4 key购买 nike

我正在尝试在我正在开发的应用程序中将 Parse 转换为 Clevertap。我尝试查看 https://blog.clevertap.com/transitioning-from-parse-push-notifications/但在我想要完成的事情上并没有太多运气。

在需要转换的方法中,我希望用户能够使用以下方式订阅和取消订阅 channel :

    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并且,此处讨论了 channel - https://github.com/CleverTap/parse-migrate#managing-channels 。如果您需要更多帮助或有任何疑问,请写信至 support@clevertap.com。

关于java - 解析到 Clevertap 转换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40406767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com