google-services.json
file. You can refer to the Android Firebase Project Setup - Step 2 and resume here once done.GoogleService-Info.plist
file. You can refer to the iOS Firebase Project Setup - Step 2 and resume here once done.V2
to start using the token-based version of the Push Notification extension.V1
and want to migrate your app to use V2
, then Select V1 & V2
option. This ensures that the users viewing the older version of your app also receive Push Notifications.V2
, thus turning off V1
(Topic-based) Push Notifications completely.deleteToken
on the fcm object.CustomMessage
, you need to set metadata while sending the CustomMessage
.
CometChat.CometChatHelper.processMessage()
to convert the message JSON to the corresponding object of TextMessage, MediaMessage,CustomMessage, Action or Call.
CometChatConstants.MESSAGE_TYPE_IMAGE
CometChatConstants.MESSAGE_TYPE_VIDEO
CometChatConstants.MESSAGE_TYPE_AUDIO
CometChatConstants.MESSAGE_TYPE_FILE