Commit e9b94efb by Kim Jinsung

Bug #44186【ABook Communication Android 1.4.200】チャットのメッセージがプッシュ通知されない

parent 8d88d0f9
...@@ -113,6 +113,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService { ...@@ -113,6 +113,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
*/ */
private void showChatRoomPopupMessage(Map<String, String> messageMap) { private void showChatRoomPopupMessage(Map<String, String> messageMap) {
String messageBody = messageMap.get(AppDefType.PushMessageKey.message); String messageBody = messageMap.get(AppDefType.PushMessageKey.message);
Logger.d("messageBody = " + messageBody);
PushMessageJSON json; PushMessageJSON json;
if (StringUtil.isNullOrEmpty(messageBody)) { if (StringUtil.isNullOrEmpty(messageBody)) {
return; return;
...@@ -120,14 +121,6 @@ public class ABVFcmListenerService extends FirebaseMessagingService { ...@@ -120,14 +121,6 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
json = new PushMessageJSON(messageBody); json = new PushMessageJSON(messageBody);
Activity currentActivity = ActivityHandlingHelper.getInstance().getCurrentActivity(); Activity currentActivity = ActivityHandlingHelper.getInstance().getCurrentActivity();
if (currentActivity.getClass().equals(ChatWebViewActivity.class)) {
ChatWebViewActivity chatWebViewActivity = (ChatWebViewActivity) currentActivity;
if (chatWebViewActivity.getRoomID().equals(json.getRoomId())) {
// push messageと同じ部屋にいる場合はpushmessageを送信しない。
return;
}
}
String baseActivityName = currentActivity.getClass().getName(); String baseActivityName = currentActivity.getClass().getName();
if (currentActivity.getClass().equals(HTMLWebViewActivity.class) || if (currentActivity.getClass().equals(HTMLWebViewActivity.class) ||
currentActivity.getClass().equals(ContentViewActivity.class) || currentActivity.getClass().equals(ContentViewActivity.class) ||
......
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