差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
后一修订版 两侧同时换到之后的修订记录
im:android:push:troubleshooting [2019/11/29 02:42]
huanxinfudh
im:android:push:troubleshooting [2020/05/06 07:22]
huanxinfudh [小米推送]
行 121: 行 121:
         </​receiver>​         </​receiver>​
  
-        <​receiver android:​name="​com.hyphenate.chatuidemo.receiver.MyxmReceiver">+        <​receiver android:​name="​com.hyphenate.push.platform.mi.EMMiMsgReceiver">
             <​intent-filter>​             <​intent-filter>​
                 <action android:​name="​com.xiaomi.mipush.RECEIVE_MESSAGE"​ />                 <action android:​name="​com.xiaomi.mipush.RECEIVE_MESSAGE"​ />
行 192: 行 192:
 options.setPushConfig(builder.build()); ​ options.setPushConfig(builder.build()); ​
 </​code>​ </​code>​
-4、需要在消息扩展里设置上oppo的channel id+4、oppo给8.0系统之后的手机发推送需要设置通道ID,环信这边推送给oppo的时候会加上默认的通道ID:“hyphenate_chatuidemo_notification”,如果需要指定准确的通道ID就需要在消息扩展里设置
 <​code>​ <​code>​
-// 设置自定义推送提示+// 设置推送通道ID
 JSONObject extObject = new JSONObject();​ JSONObject extObject = new JSONObject();​
 try { try {
-    extObject.put("​em_oppo_push_channel_id", ​channelId);+    extObject.put("​em_push_channel_id", ​”channelID“);
 } catch (JSONException e) { } catch (JSONException e) {
     e.printStackTrace();​     e.printStackTrace();​