After you have authenticated the client app and the user, set up notifications and register push tokens for the user to receive push notifications on the device. Push tokens allow the client app to receive notifications about an incoming 1-to-1 call when the app is running in the background or closed.
You can set up push notifications using either VoIP or remote notifications. To use either type of notifications, add your APNs certificate on Sendbird Dashboard
To receive push notifications using VoIP, add CallKit
Add the user’s device token to the server to receive a 1-to-1 call. Call the SendbirdCalls.ios_registerVoIPPushToken()
method to register the push token for VoIP.
To receive push notifications using remote notifications, go to your Xcode project’s Signing & Capabilities and enable Remote notifications. Use the SendbirdCalls.registerPushToken()
method to add a token with remote notifications.
For detailed information about differences between the two types of notifications and push notifications registration, see the notifications page.
You can set up push notifications using FCM by adding your server key on Sendbird DashboardSendbirdCalls.registerPushToken()
method to register the push token.
For detailed information about push notification registration, see the notifications page.