curl --request GET \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/push-notification/v1/settings \
--header 'key: <key>' \
--header 'secret: <secret>'{
"settings": {
"version": 2,
"pushProvider": 1,
"fcmCredentials": {
"project_id": "project_id",
"client_email": "client_email",
"private_key": "private_key",
"private_key_id": "private_key_id"
},
"notificationInPayload": {
"web": true,
"android": true,
"ionic_cordova": true,
"react_native": false,
"ios": true,
"flutter": true
},
"useP8": true,
"sendApnsProduction": true,
"sendNewMessageNotification": true,
"sendEditMessageNotification": false,
"sendDeleteMessageNotification": false,
"sendThreadedMessageNotification": true,
"sendIncomingCallNotification": true,
"sendMissedCallNotification": true,
"sendMemberJoinedNotification": true,
"sendMemberLeftNotification": true,
"sendMemberKickedNotification": true,
"sendMemberBannedNotification": true,
"sendMemberUnbannedNotification": true,
"sendMemberAddedNotification": true,
"sendMemberScopeChangedNotification": false,
"keyId": "key_id",
"teamId": "team_id",
"bundleId": "bundle_id",
"appId": "abcd",
"cometchatMessagePayloadOptions": {
"skipSenderMetadata": false,
"skipReceiverMetadata": false,
"skipMessageMetadata": false,
"trimMessageText": true
}
}
}Push notification : Get settings for Push notifications extension.
curl --request GET \
--url https://apimgmt.cometchat.io/apps/{appId}/extensions/push-notification/v1/settings \
--header 'key: <key>' \
--header 'secret: <secret>'{
"settings": {
"version": 2,
"pushProvider": 1,
"fcmCredentials": {
"project_id": "project_id",
"client_email": "client_email",
"private_key": "private_key",
"private_key_id": "private_key_id"
},
"notificationInPayload": {
"web": true,
"android": true,
"ionic_cordova": true,
"react_native": false,
"ios": true,
"flutter": true
},
"useP8": true,
"sendApnsProduction": true,
"sendNewMessageNotification": true,
"sendEditMessageNotification": false,
"sendDeleteMessageNotification": false,
"sendThreadedMessageNotification": true,
"sendIncomingCallNotification": true,
"sendMissedCallNotification": true,
"sendMemberJoinedNotification": true,
"sendMemberLeftNotification": true,
"sendMemberKickedNotification": true,
"sendMemberBannedNotification": true,
"sendMemberUnbannedNotification": true,
"sendMemberAddedNotification": true,
"sendMemberScopeChangedNotification": false,
"keyId": "key_id",
"teamId": "team_id",
"bundleId": "bundle_id",
"appId": "abcd",
"cometchatMessagePayloadOptions": {
"skipSenderMetadata": false,
"skipReceiverMetadata": false,
"skipMessageMetadata": false,
"trimMessageText": true
}
}
}AppID in which the extension has to be enabled/disabled
Get Push Notification Settings
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
2: Token-based (Recommended) | 0: Topic-based + Token-based | 1: Topic-based (Legacy)
1: FCM | 2: APNs | 0: FCM+APNs
Show child attributes
Include 'notification' key for Web
Include 'notification' key for Android
Include 'notification' key for Ionic
Include 'notification' key for React native
Include 'notification' key for iOS
Was this page helpful?