Skip to content

videosdk-live/videosdk-rtc-ios-swiftui-call-trigger-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Call Trigger with VideoSDK

  • Callkit enables you to display the system-calling UI for your app's VoIP services and manage communication between your app, the system, and other apps. See for further details.

  • Pushkit sends particular kinds of notifications, including notifications of file provider changes, watchOS complication updates, and VoIP invitations. It helps VoIP apps a lot. Visit Pushkit for additional details.

Step 1: Setup Firebase app

  1. Create Firebase iOS App within Firebase Project.
  2. Download and add GoogleService-info.plist file to project

plot

Step 2: Configure Pushkit

You must upload an APNs Auth Key in order to implement push notifications. We need the following details about your app when sending push notifications via an APNs Auth Key:

  • Auth Key file
  • Team ID
  • Key ID
  • Your app’s bundle ID

To create an APNs auth key, follow the steps below.

Visit the Apple Developer Member Center

plot

Click on Certificates, Identifiers & Profiles. Go to Keys from the left side. Create a new Auth Key by clicking on the plus button in the top right side.

plot

On the following page, add a Key Name, and select APNs.

plot

Click on the Register button.

plot

You can download your auth key file from this page and upload this file to Firebase dashboard without changing its name.

plot

In your firebase project, go to Settings and select the Cloud Messaging tab. Scroll down to iOS app configurationand click upload under APNs Authentication Key

plot

Enter Key ID and Team ID. Key ID is in the file name, AuthKey_{Key ID}.p8 and is 10 characters. Your Team ID is in the Apple Member Center under the membership tab or displayed always under your account name in the top right corner.

plot

Note:

Enable Push Notifications in Capabilities

plot

plot

Enable selcted permission in Background Modes

plot

Server

You have to add AuthKey_{Key ID}.p8 under server directory which we generated from Apple Dev and upload it to Firebase in client setup. This will helps us in VoIP push notification.

plot

Update KeyId and teamId in APN provider located inside /initiate-call API.

plot

Install dependencies and start server

npm install
npm run start

Issues

You can generate the issue on Github or ping us on Discord

Other Information

Tested on Devices

  • iPhone SE (2nd Generation)
  • iPhone 14
  • iPhone xR

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published