文章詳情頁
java - 極光推送怎么判斷用戶在線狀態(tài)
瀏覽:78日期:2023-12-21 17:18:13
問題描述
可以直接推送消息,但是判斷是否在線拋異常:
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
問題解答
回答1:403拒絕訪問這個接口是付費調用的吧。
標簽:
java
上一條:java - why cannot read int value from JTextField下一條:java - Mybatis查詢數(shù)據(jù)庫時出現(xiàn)查詢getInt()的錯誤
相關文章:
1. nignx - docker內nginx 80端口被占用2. docker images顯示的鏡像過多,狗眼被亮瞎了,怎么辦?3. 關于docker下的nginx壓力測試4. android - 百度地圖加載完成監(jiān)聽5. 跟蹤器怎么開啟無反應6. java - 阿里的開發(fā)手冊中為什么禁用map來作為查詢的接受類?7. docker api 開發(fā)的端口怎么獲取?8. macos - mac下docker如何設置代理9. dockerfile - [docker build image失敗- npm install]10. python3.x - git bash如何運行.bat文件?
排行榜

熱門標簽