PushConfigCenter

public class PushConfigCenter

用来进行推送初始化配置的主要管理类

Author

zoulu

Constructors

Link copied to clipboard
public void PushConfigCenter()

Functions

Link copied to clipboard
public List<PushType> getPreferPushType(Context context, PushConfig pushConfig)
获取适合的推送类型 根据手机机型和用户 enable 适配的推送类型
Link copied to clipboard
public boolean isFcmCacheValid(Context context)
在用户有配置 FCM 推送的情况下,每 2 小时清空一下缓存
Link copied to clipboard
public boolean isNeedReportToken(Context context, PushType pushType, String token)
判断是否需要上传 token
Link copied to clipboard
public void saveConfig(Context context, PushConfig pushConfig)