|
@@ -116,20 +116,18 @@ public class App extends BaseApplication {
|
|
|
|
|
|
private void initRong() {
|
|
|
PushConfig config = new PushConfig.Builder()
|
|
|
-// .enableMiPush("2882303761518199184", "5831819935184")
|
|
|
-// .enableOppoPush("2ccd04764bae48a3aedccd2b42fc1ef5", "64dc657d073746e4911f62d0c040d976")
|
|
|
-// .enableHWPush(true)
|
|
|
-// .enableVivoPush(true)
|
|
|
+ .enableMiPush("2882303761520170306", "5802017024306")
|
|
|
+ .enableOppoPush("5b2b716e774c45f2bd9a90b242b295e9", "3f1d849d8bce4273be48ca08a2ce320b")
|
|
|
+ .enableHWPush(true)
|
|
|
+ .enableVivoPush(true)
|
|
|
.build();
|
|
|
RongPushClient.setPushConfig(config);
|
|
|
|
|
|
- /* if (BuildConfig.DEBUG) {
|
|
|
- IMManager.init(this, "0vnjpoad0jbdz");////TODO 设置小班课appkey uwd1c0sxuqp91 c9kqb3rdc451j 6tnym1br6pv07
|
|
|
+ if (BuildConfig.DEBUG) {
|
|
|
+ IMManager.init(this, "0vnjpoad0jbdz");
|
|
|
} else {
|
|
|
- IMManager.init(this, "6tnym1br6pv07");////TODO 设置小班课appkey uwd1c0sxuqp91 c9kqb3rdc451j 6tnym1br6pv07
|
|
|
- }*/
|
|
|
- IMManager.init(this, "0vnjpoad0jbdz");
|
|
|
-// RouteUtils.registerActivity(RouteUtils.RongActivityType.ConversationActivity, ConversationActivity.class);
|
|
|
+ IMManager.init(this, "e5t4ouvpe42pa");
|
|
|
+ }
|
|
|
// RTCLib 初始化
|
|
|
RongIMClient.registerMessageType(RCChatJoinRoomMessage.class);//加入直播房间消息
|
|
|
RongIMClient.registerMessageType(RCChatModeMessage.class);//直播间聊天模式控制消息
|