>  Q&A  >  본문

java - 极光推送怎么判断用户在线状态

可以直接推送消息,但是判断是否在线抛异常:

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
黄舟黄舟2742일 전869

모든 응답(1)나는 대답할 것이다

  • 高洛峰

    高洛峰2017-04-18 10:58:24

    403 액세스 거부
    이 인터페이스는 유료로 호출되어야 합니다.

    회신하다
    0
  • 취소회신하다