Commit 4c6164ae by Lee Jaebin

FCMトークンを取得できない場合、noneIdでセットしてログインできるように修正

parent 4554093e
...@@ -34,9 +34,10 @@ public abstract class ABVLoginActivity extends ABVNoAuthenticatedActivity { ...@@ -34,9 +34,10 @@ public abstract class ABVLoginActivity extends ABVNoAuthenticatedActivity {
ABVToastUtil.showMakeText(ABVLoginActivity.this, R.string.fcm_not_supported, Toast.LENGTH_SHORT); ABVToastUtil.showMakeText(ABVLoginActivity.this, R.string.fcm_not_supported, Toast.LENGTH_SHORT);
} }
}); });
} else { // FCMトークンを取得できない場合、noneIdでセットしてログインする
serverLoginAndCheckChangeUser(fcmToken); fcmToken = "noneId";
} }
serverLoginAndCheckChangeUser(fcmToken);
} finally { } finally {
closeProgressPopup(); closeProgressPopup();
} }
......
...@@ -108,9 +108,10 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity { ...@@ -108,9 +108,10 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
String fcmToken = FcmManager.getFcmToken(mContext); String fcmToken = FcmManager.getFcmToken(mContext);
if (fcmToken == null) { if (fcmToken == null) {
ABVToastUtil.showMakeText(mContext, R.string.fcm_not_supported, Toast.LENGTH_SHORT); ABVToastUtil.showMakeText(mContext, R.string.fcm_not_supported, Toast.LENGTH_SHORT);
} else { // FCMトークンを取得できない場合、noneIdでセットしてログインする
noAuthenticatedShowMain(isGuestLogin, fcmToken, urlPath); fcmToken = "noneId";
} }
noAuthenticatedShowMain(isGuestLogin, fcmToken, urlPath);
} }
}); });
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment