简体   繁体   中英

Make a voice call with Agora Kit

I'm using AgoraKit to build a voice call app 'VOIP' long side with CallKit.

When I'm trying to put the same channelId on 2 different devices and make join to channel, everything is going well.

What I want to do is to make the first device call the second one by defining a UID, So the second device will ring when ever the first one called it.

The problem is that I can't define a specific id for the device to call it, I looked up on Google for all the tutorials about joining a call with callKit even the code samples on Agora didn't help.

In another word, I'm trying to make the same logic as Messenger app, when ever the user call another user it should be going to ring.

Any idea would be helpful, thanks.

This is the function inside of the VoIP where you can find a unique device id. On the bases of this id you can make a call to other person.

 // Handle updated push credentials
    func pushRegistry(registry: PKPushRegistry!, didUpdatePushCredentials credentials: PKPushCredentials!, forType type: String!) {
        // Register VoIP push token (a property of PKPushCredentials) with server
    }

this is the link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM