All Projects → masashi-sutou → flutter_ios_voip_kit

masashi-sutou / flutter_ios_voip_kit

Licence: MIT license
One-to-one video call using CallKit and PushKit with flutter iOS app.

Programming Languages

dart
5743 projects
swift
15916 projects
kotlin
9241 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter ios voip kit

flutter voip push notification
Flutter VoIP Push Notification - Currently iOS >= 8.0 only
Stars: ✭ 26 (-52.73%)
Mutual labels:  voip, pushkit, callkit
VoIPPush
viop推送实现呼叫连续响铃效果
Stars: ✭ 88 (+60%)
Mutual labels:  voip, pushkit
tSIP
SIP softphone
Stars: ✭ 103 (+87.27%)
Mutual labels:  voip
voipms-sms-firebase
IBM Cloud Function used to implement push notifications for VoIP.ms
Stars: ✭ 19 (-65.45%)
Mutual labels:  voip
connectycube-flutter-call-kit
A Flutter plugin for displaying call screen when the app in the background or terminated.
Stars: ✭ 35 (-36.36%)
Mutual labels:  callkit
sipsorcery-media
The SIPSorcery library for WebRTC infrastructure and Windows audio and video capture.
Stars: ✭ 19 (-65.45%)
Mutual labels:  voip
Oreka
Enterprise telephony recording and retrieval system with web based user interface.
Stars: ✭ 20 (-63.64%)
Mutual labels:  voip
Restcomm Connect
The Open Source Cloud Communications Platform
Stars: ✭ 232 (+321.82%)
Mutual labels:  voip
server
即时通讯(IM)系统
Stars: ✭ 6,896 (+12438.18%)
Mutual labels:  voip
sems-yeti
YETI application for SEMS core
Stars: ✭ 15 (-72.73%)
Mutual labels:  voip
php-libtgvoip
PHP extension that wraps the telegram VoIP library.
Stars: ✭ 22 (-60%)
Mutual labels:  voip
freeswitch-esl-all
freeswitch event socket base on netty 4 and has some new features.
Stars: ✭ 110 (+100%)
Mutual labels:  voip
ominicontacto
The Open Source Contact Center Solution (mirror of https://gitlab.com/omnileads/ominicontacto)
Stars: ✭ 24 (-56.36%)
Mutual labels:  voip
switchy
async FreeSWITCH cluster control
Stars: ✭ 67 (+21.82%)
Mutual labels:  voip
anyfesto
Low cost Raspberry Pi /Linux based access point with audio, education and communications local content server. Inspired by the ideas of sharing with others. Anyfesto - a platform from which to speak.
Stars: ✭ 66 (+20%)
Mutual labels:  voip
FSlmx
FreeSWITCH GUI 简体中文GUI for PHP (UTF8)
Stars: ✭ 43 (-21.82%)
Mutual labels:  voip
SilentServer
Silent is very lightweight, high quality - low latency voice chat for gaming. The server runs on Windows and Linux.
Stars: ✭ 52 (-5.45%)
Mutual labels:  voip
tgcalls
Voice chats, private incoming and outgoing calls in Telegram for Developers
Stars: ✭ 408 (+641.82%)
Mutual labels:  voip
zello-channel-api
WebSocket-based API and SDKs to connect to Zello channels (BETA)
Stars: ✭ 59 (+7.27%)
Mutual labels:  voip
tvoip
Terminal-based P2P VoIP application (TeamSpeak-/Skype-like voice chatting over LAN or Internet)
Stars: ✭ 34 (-38.18%)
Mutual labels:  voip

flutter_ios_voip_kit

One-to-one video call using CallKit and PushKit with flutter iOS app.

Motivation

We need to use CallKit to handle incoming VoIP notifications from iOS 13. Check the WWDC2019 video for more information. So instead of using CallKit and PushKit separately, there is a growing need to use them together. However, there are still few VoIP notification samples on the net that use CallKit and PushKit (especially for Flutter). I decided to create a flutter plugin with the minimum required functions. You can use this plugin, but the actual purpose is to help you create a VoIPKit tailored to your service.

Requirement

  • iOS only, not support Android.
  • iOS 10 or above.
  • one-to-one call only, not support group call.
  • need to a server for pushing VoIP notification with APNs.
  • to actually make a video or call, you need to link to a service such as WebRTC(ex: Agora, SkyWay, Amazon Kinesis Video Streams).

Usage

1. install

  • Add flutter_ios_voip_kit as a dependency in your pubspec.yaml file.

2. setting Capability in Xcode

  1. Select Background Modes > Voice over IP and Remote notifications is ON.
  2. Select Push Notifications.
  3. Changed ios/Runner/Info.plist after selected Capability.
<key>UIBackgroundModes</key>
<array>
    <string>remote-notification</string>
    <string>voip</string>
</array>

2. edit Info.plist

  • Edit ios/Runner/Info.plist as below.
<key>FIVKIconName</key>
<string>AppIcon-VoIPKit</string>
<key>FIVKLocalizedName</key>
<string>VoIP-Kit</string>
<key>FIVKSupportVideo</key>
<true/>
<key>FIVKSkipRecallScreen</key>
<true/>

3. add New Image set for CallKit

  • Add an icon(.png or .pdf) ios/Runner/Assets.xcassets/AppIcon-VoIPKit to use on the screen when a call comes in while locked iPhone.

4. create VoIP Services Certificate

Create .p12 from .cer with KeyChainAccess
openssl pkcs12 -in voip_services.p12 -out voip_services.pem -nodes -clcerts

5. request VoIP notification APNs from your server

{
    "aps": {
        "alert": {
          "uuid": <Version 4 UUID (e.g.: https://www.uuidgenerator.net/version4) >,
          "incoming_caller_id": <your service user id>,
          "incoming_caller_name": <your service user name>,
        }
    }
}
  • You can use curl to test VoIP notifications as follows.
curl -v \
-d '{"aps":{"alert":{"uuid":"982cf533-7b1b-4cf6-a6e0-004aab68c503","incoming_caller_id":"0123456789","incoming_caller_name":"Tester"}}}' \
-H "apns-push-type: voip" \
-H "apns-expiration: 0" \
-H "apns-priority: 0" \
-H "apns-topic: <your app’s bundle ID>.voip" \
--http2 \
--cert ./voip_services.pem \
https://api.sandbox.push.apple.com/3/device/<VoIP device Token for your iPhone>

Try out example app

Select call role 🤙 Caller page 🔔 Callee page
🔔 Callee(incoming call) 🔔 Callee(locked) 🔔 Callee(locked) 🔔 Callee(recall)
🔔 Callee(unanswered local notification) 🔔 Callee(unanswered local notification)

Q&A

Does CallKit have a call and outgoing call screen?

  • No. CallKit support incoming call screen only. You need to make your own a call and outgoing call screens.

Can I use remote push device token instead of VoIP device token?

  • No. Since the specifications of VoIP token and push token are different, it is necessary to manage them separately in your database.

Can't get VoIP token on iOS13

  • Please uninstall the app, restart the terminal and reinstall the app. You can get it after a while.

Don't receive VoIP notifications

  • Please check the following items.
    1. Is the VoIP device token correct?
    2. Did you set your app’s bundle ID with .voip to apns-topic?
    3. Did you set voip to apns-push-type?
    4. Is the APNs endpoint(Development or Production) correct?
    5. For iOS13, VoIP notifications may not be received if call kit call fails many times. Please uninstall the app, restart the terminal and reinstall the app.

No icon is displayed on the incoming call screen when locked

  • The icon image should be a square with side length of 40 points. The color is ignored. Please design with the difference of alpha.
  • If created in PDF, checked Preserve Vector Data for Resizing and change Single Scale for Scales.
create icon (e.g.: sketch) Xcode Image Set

Reference

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].