HTTPS
. This is essential to ensure the security and integrity of data transmission.HTTP POST
method. Event payloads will be delivered via HTTP POST
requests in JSON
format.CometChat.login()
& receiving user’s permission to receiver Push notifications.CometChatNotifications.registerPushToken()
method from the SDK. This method accepts the following parameters.
Parameter | Type | Description |
---|---|---|
pushToken | String | The pushToken can contain:• Firebase (FCM) token • Device token (iOS only) • VoIP token (iOS only) |
platform | String | The platform can take the following values:• PushPlatforms.FCM_ANDROID • PushPlatforms.FCM_FLUTTER_ANDROID • PushPlatforms.FCM_FLUTTER_iOS • PushPlatforms.APNS_FLUTTER_DEVICE • PushPlatforms.APNS_FLUTTER_VOIP • PushPlatforms.FCM_iOS • PushPlatforms.APNS_iOS_DEVICE • PushPlatforms.APNS_iOS_VOIP • PushPlatforms.FCM_WEB • PushPlatforms.FCM_REACT_NATIVE_ANDROID • PushPlatforms.FCM_REACT_NATIVE_iOS • PushPlatforms.APNS_REACT_NATIVE_DEVICE • PushPlatforms.APNS_REACT_NATIVE_VOIP • PushPlatforms.FCM_IONIC_CORDOVA_ANDROID • PushPlatforms.FCM_IONIC_CORDOVA_iOS • PushPlatforms.APNS_IONIC_CORDOVA_DEVICE • PushPlatforms.APNS_IONIC_CORDOVA_VOIP |
providerId | String | The providerId should match with:• Any one of the FCM provider identifiers in case of an FCM token. • Any one of the APNS provider identifiers in case of Device or VoIP tokens. |
CometChat.logout()
method.
For token unregistration, use the CometChatNotifications.unregisterPushToken()
method provided by the SDKs.