This commit is contained in:
18142669586 2022-08-30 13:09:42 +08:00
parent 31b7667a3d
commit 7bcfda3f72
3 changed files with 7 additions and 4 deletions

View File

@ -19,6 +19,7 @@ import com.yunbao.common.utils.L;
import java.util.Locale; import java.util.Locale;
import io.rong.imlib.RongIMClient;
import io.rong.push.RongPushClient; import io.rong.push.RongPushClient;
import io.rong.push.pushconfig.PushConfig; import io.rong.push.pushconfig.PushConfig;
import me.leolin.shortcutbadger.ShortcutBadger; import me.leolin.shortcutbadger.ShortcutBadger;
@ -56,6 +57,8 @@ public class CommonAppContext extends MultiDexApplication {
// .enableHWPush(true) // .enableHWPush(true)
// .build(); // .build();
// RongPushClient.setPushConfig(config); //将推送相关配置设置到 SDK // RongPushClient.setPushConfig(config); //将推送相关配置设置到 SDK
//设置新加坡融云服务器 有时候国内收不到推送是因为这个
RongIMClient.setServerInfo("navsg01.cn.ronghub.com", null);
//谷歌推送 //谷歌推送
PushConfig gconfig = new PushConfig.Builder() PushConfig gconfig = new PushConfig.Builder()
.enableFCM(true) .enableFCM(true)

View File

@ -32,9 +32,9 @@ import static com.yunbao.common.CommonAppContext.isReady;
*/ */
public class RongcloudIMManager { public class RongcloudIMManager {
//融云开发者平台注册app唯一识别符 //融云开发者平台注册app唯一识别符
// public static final String RONG_IM_KEY = "uwd1c0sxu1p71"; public static final String RONG_IM_KEY = "uwd1c0sxu1p71";
//测试环境 //测试环境
public static final String RONG_IM_KEY = "pvxdm17jpd3hr"; // public static final String RONG_IM_KEY = "pvxdm17jpd3hr";
private static final String CLASSNAME = "RongcloudIMManager"; private static final String CLASSNAME = "RongcloudIMManager";

View File

@ -10,9 +10,9 @@ ext {
manifestPlaceholders = [ manifestPlaceholders = [
// //
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// //
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
// //
txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB", txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",