バックグラウンド協業が通知された時に、端末のホーム画面にポップアップが表示されてしまうのを修正した。
Showing
... | ... | @@ -98,11 +98,15 @@ public class ABVFcmListenerService extends FirebaseMessagingService { |
msg.put(AppDefType.PushMessageKey.message, textMessage); | ||
} | ||
String roomType = null; | ||
String[] inviteMessage; | ||
if (textMessage.contains(INVITE_COLLABORATION)) { | ||
String roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType)); | ||
String[] inviteMessage = textMessage.split(CHAT_MESSAGE_SEPERATOR); | ||
showCollaborationPopUpMessage(roomId, roomName, roomType, pushSendLoginId, pushSendDate, inviteMessage[1]); | ||
return; | ||
roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType)); | ||
inviteMessage = textMessage.split(CHAT_MESSAGE_SEPERATOR); | ||
//showCollaborationPopUpMessage(roomId, roomName, roomType, pushSendLoginId, pushSendDate, inviteMessage[1]); | ||
//return; | ||
Logger.i(TAG,"" + roomType); | ||
Logger.i(TAG,"" + inviteMessage[1]); | ||
Please
register
or
sign in
to reply
|
||
} | ||
} | ||
... | ... | @@ -248,22 +252,42 @@ public class ABVFcmListenerService extends FirebaseMessagingService { |
return intent; | ||
} | ||
JSONObject json = new JSONObject(tempMsg); | ||
String textMessage = json.getString(AppDefType.PushMessageKey.message); | ||
if (textMessage.length() > 0){ | ||
//tempMsg = textMessage; | ||
} | ||
String roomType = ""; | ||
String collaborationType = ""; | ||
if (textMessage.contains(INVITE_COLLABORATION)) { | ||
roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType)); | ||
String[] inviteMessage = textMessage.split(CHAT_MESSAGE_SEPERATOR); | ||
collaborationType = inviteMessage[1]; | ||
//showCollaborationPopUpMessage(roomId, roomName, roomType, pushSendLoginId, pushSendDate, inviteMessage[1]); | ||
//return; | ||
} | ||
String roomName = json.getString(AppDefType.ChatPushMessageKey.roomName); | ||
String pushMsg = json.getString(AppDefType.PushMessageKey.message); | ||
message.put(AppDefType.PushMessageKey.message, pushMsg); | ||
if (roomName.length() <= 0) { return intent; } | ||
if (roomName.length() <= 0) { | ||
return intent; | ||
} | ||
long roomId = json.getLong(AppDefType.ChatPushMessageKey.roomId); | ||
long pushSendDate = json.getLong(AppDefType.ChatPushMessageKey.pushSendDate); | ||
String pushSendLoginId = json.getString(AppDefType.ChatPushMessageKey.pushSendLoginId); | ||
//String roomType = json.getString(AppDefType.ChatPushMessageKey.roomType); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.roomId, roomId); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.roomName, roomName); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.pushSendLoginId, pushSendLoginId); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.pushSendDate, pushSendDate); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.roomType, roomType); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.collaborationType, collaborationType); | ||
return intent; | ||
} | ||
... | ... |