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.Cloud Messaging
tab.ApplicationDelegate:
application:didFinishLaunchingWithOptions: method:
application:didFinishLaunchingWithOptions: method:
App Delegate:
CustomMessage
:CustomMessage
, the developer needs to set metadata
while sending the CustomMessage
value as follows:
CometChat.CometChatHelper.processMessage()
which will take the JSON received in The push notification as input, and return the corresponding TextMessage
, MediaMessage
,CustomMessage
or Call
object in return. Once the message object is received, you can use the entity as per your requirements.
This code needs to be added to the willPresent notification
method of the UNUserNotificationCenterDelegate
delegate.