可以直接推送消息,但是判斷是否在線拋異常:
Got error response - responseCode:403, responseContent:{"error":{"code":2004,"message":"Need permission to perform this action."}}
Request is forbidden! Maybe your appkey is listed in blacklist or your params is invalid.
調用的方法:
public Map<String,OnlineStatus> getUserOnlineStatus(String... registrationIds)
throws cn.jiguang.common.resp.APIConnectionException,
cn.jiguang.common.resp.APIRequestException
403拒絕存取
這個介面是付費呼叫的吧。