优化代码
This commit is contained in:
@@ -11,7 +11,6 @@ public class IndexActivity extends MainActivity {
|
||||
initConfig();
|
||||
super.onCreate(savedInstanceState);
|
||||
initWinwdowLogoConfig();
|
||||
// registerFCM();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -33,6 +32,7 @@ public class IndexActivity extends MainActivity {
|
||||
if (!task.isSuccessful()) {
|
||||
msg = "Subscribe failed";
|
||||
}else{
|
||||
//fcm能注册成功 再去请求通知权限
|
||||
checkNotify();
|
||||
}
|
||||
LogUtils.i("支持FCM 结果:"+msg);
|
||||
|
||||
Reference in New Issue
Block a user