@capgo/capacitor-incoming-call-kit

June 16, 2026 · View on GitHub

Capgo - Instant updates for Capacitor

➡️ Get Instant updates for your App with Capgo

Missing a feature? We’ll build the plugin for you 💪

Display a native incoming-call surface in Capacitor with Android full-screen notifications and iOS CallKit.

This plugin was built for teams who want something in the same space as olarewajuakeemope/capacitor-incoming-call-kit, but with a small API, typed events, clearer platform boundaries, and documentation you can actually ship from.

Documentation

The most complete doc is available here: https://capgo.app/docs/plugins/incoming-call-kit/

Compatibility

Plugin versionCapacitor compatibilityMaintained
v8.*.*v8.*.*
v7.*.*v7.*.*On demand
v6.*.*v6.*.*

Note: The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation. Only the latest major version is actively maintained.

Install

You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:

npx skills add https://github.com/cap-go/capacitor-skills --skill capacitor-plugins

Then use the following prompt:

Use the `capacitor-plugins` skill from `cap-go/capacitor-skills` to install the `@capgo/capacitor-incoming-call-kit` plugin in my project.

If you prefer Manual Setup, install the plugin by running the following commands and follow the platform-specific instructions below:

bun add @capgo/capacitor-incoming-call-kit
bunx cap sync

What This Plugin Does

  • Shows a native incoming call UI from JavaScript.
  • Emits buffered callAccepted, callDeclined, callEnded, and callTimedOut events so the action still reaches JS if the bridge was cold.
  • Uses Android notifications plus a full-screen activity.
  • Uses iOS CallKit for the system incoming-call sheet.
  • Keeps the push transport out of scope so you can wire it to your own FCM, PushKit, SIP, or backend flow.

What This Plugin Does Not Do

  • It does not register FCM, APNs, or PushKit for you.
  • It does not create or manage the underlying audio/video session.
  • It does not replace your VoIP SDK. It only handles the native incoming-call presentation layer.

Quick Start

import { IncomingCallKit } from '@capgo/capacitor-incoming-call-kit';

await IncomingCallKit.requestPermissions();
await IncomingCallKit.requestFullScreenIntentPermission();

await IncomingCallKit.addListener('callAccepted', async ({ call }) => {
  console.log('Accepted:', call.callId, call.extra);
  // Join your voice/video session here.
});

await IncomingCallKit.addListener('callDeclined', ({ call }) => {
  console.log('Declined:', call.callId);
});

await IncomingCallKit.addListener('callTimedOut', ({ call }) => {
  console.log('Timed out:', call.callId);
});

await IncomingCallKit.showIncomingCall({
  callId: 'call-42',
  callerName: 'Ada Lovelace',
  handle: '+39 555 010 020',
  appName: 'Capgo Phone',
  hasVideo: true,
  timeoutMs: 45_000,
  extra: {
    roomId: 'room-42',
    callerUserId: 'user_ada',
  },
  android: {
    channelId: 'calls',
    channelName: 'Incoming Calls',
    showFullScreen: true,
  },
  ios: {
    handleType: 'phoneNumber',
  },
});

Event Model

  • incomingCallDisplayed: native UI was shown successfully.
  • callAccepted: the user accepted from the native UI.
  • callDeclined: the user declined before joining.
  • callEnded: your app or the platform ended the tracked call.
  • callTimedOut: the call stayed unanswered until timeoutMs.

Each event carries the normalized call payload and your original extra object.

Platform Notes

Android

  • requestPermissions() requests POST_NOTIFICATIONS on Android 13+.
  • requestFullScreenIntentPermission() opens the Android 14+ settings page for full-screen intents.
  • showIncomingCall() posts a high-priority notification and can raise a full-screen activity while the app is already running.
  • The timeout is best-effort and also uses the notification timeout when available.

iOS

  • showIncomingCall() reports the call to CallKit.
  • CallKit itself does not require a runtime permission prompt, so requestPermissions() resolves immediately on iOS.
  • Your app is responsible for starting the real call session after callAccepted.
  • If you need background incoming-call delivery from VoIP pushes, wire your PushKit/APNs flow to call this plugin as soon as your Capacitor bridge is available.

Choosing An Architecture

  • If your app already uses Twilio, Stream, Daily, or a SIP stack, use this plugin as the native ringing layer and keep the media session in your existing SDK.
  • If you only need foreground testing or a custom backend event, calling showIncomingCall() directly from JS is enough.
  • If you need true background delivery, pair this plugin with your own native push integration instead of baking a push provider into the plugin itself.

Example App

The repository includes example-app with a small control panel for:

  • requesting permissions,
  • showing a demo incoming call,
  • inspecting active calls,
  • and watching listener payloads in real time.

API

Capacitor API for presenting a native incoming-call surface.

showIncomingCall(...)

showIncomingCall(options: ShowIncomingCallOptions) => Promise<ShowIncomingCallResult>

Displays the native incoming call UI.

Android shows a high-priority notification and can raise a full-screen activity. iOS reports the call to CallKit.

ParamType
optionsShowIncomingCallOptions

Returns: Promise<ShowIncomingCallResult>


endCall(...)

endCall(options: EndCallOptions) => Promise<ActiveCallsResult>

Ends a specific tracked call.

ParamType
optionsEndCallOptions

Returns: Promise<ActiveCallsResult>


endAllCalls(...)

endAllCalls(options?: EndAllCallsOptions | undefined) => Promise<ActiveCallsResult>

Ends every tracked call.

ParamType
optionsEndAllCallsOptions

Returns: Promise<ActiveCallsResult>


getActiveCalls()

getActiveCalls() => Promise<ActiveCallsResult>

Returns the currently tracked calls.

Returns: Promise<ActiveCallsResult>


checkPermissions()

checkPermissions() => Promise<IncomingCallPermissionStatus>

Returns the current permission state for notifications and full-screen intents.

Returns: Promise<IncomingCallPermissionStatus>


requestPermissions()

requestPermissions() => Promise<IncomingCallPermissionStatus>

Requests the notification permission when the platform supports it.

iOS CallKit itself does not require a runtime prompt, so iOS resolves without prompting.

Returns: Promise<IncomingCallPermissionStatus>


requestFullScreenIntentPermission()

requestFullScreenIntentPermission() => Promise<IncomingCallPermissionStatus>

Opens the Android 14+ full-screen intent settings page when available.

On other platforms this resolves with the current permission status.

Returns: Promise<IncomingCallPermissionStatus>


getPluginVersion()

getPluginVersion() => Promise<PluginVersionResult>

Returns the native implementation version marker.

Returns: Promise<PluginVersionResult>


addListener('incomingCallDisplayed', ...)

addListener(eventName: 'incomingCallDisplayed', listenerFunc: (event: IncomingCallEvent) => void) => Promise<PluginListenerHandle>

Fired after the call has been handed to the native platform UI.

ParamType
eventName'incomingCallDisplayed'
listenerFunc(event: IncomingCallEvent) => void

Returns: Promise<PluginListenerHandle>


addListener('callAccepted', ...)

addListener(eventName: 'callAccepted', listenerFunc: (event: IncomingCallEvent) => void) => Promise<PluginListenerHandle>

Fired when the user accepts the call from native UI.

ParamType
eventName'callAccepted'
listenerFunc(event: IncomingCallEvent) => void

Returns: Promise<PluginListenerHandle>


addListener('callDeclined', ...)

addListener(eventName: 'callDeclined', listenerFunc: (event: IncomingCallEvent) => void) => Promise<PluginListenerHandle>

Fired when the user declines the call from native UI.

ParamType
eventName'callDeclined'
listenerFunc(event: IncomingCallEvent) => void

Returns: Promise<PluginListenerHandle>


addListener('callEnded', ...)

addListener(eventName: 'callEnded', listenerFunc: (event: IncomingCallEvent) => void) => Promise<PluginListenerHandle>

Fired when a call ends through the API or a platform action.

ParamType
eventName'callEnded'
listenerFunc(event: IncomingCallEvent) => void

Returns: Promise<PluginListenerHandle>


addListener('callTimedOut', ...)

addListener(eventName: 'callTimedOut', listenerFunc: (event: IncomingCallEvent) => void) => Promise<PluginListenerHandle>

Fired when an unanswered call reaches its configured timeout.

ParamType
eventName'callTimedOut'
listenerFunc(event: IncomingCallEvent) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Removes every native listener registered by the plugin.


Interfaces

ShowIncomingCallResult

Result payload for showIncomingCall().

PropTypeDescription
callIncomingCallRecordThe call record that was created or reused.

IncomingCallRecord

Represents a currently tracked call.

PropTypeDescription
callIdstringStable call identifier provided by your app.
callerNamestringName shown in the native UI.
handlestringSecondary handle shown by the platform when available.
hasVideobooleanWhether this call should be treated as a video call.
stateIncomingCallStateCurrent platform-reported call state.
platform'android' | 'ios' | 'web'Platform that produced the record.
extraRecord<string, any>Arbitrary metadata passed in at call creation time.

ShowIncomingCallOptions

Common options used to present an incoming call.

PropTypeDescription
callIdstringStable identifier for the call. Reuse the same value when ending the call later.
callerNamestringPrimary name shown to the user.
handlestringOptional secondary handle such as a phone number, SIP URI, or user ID.
appNamestringLabel shown by Android in notifications. iOS uses the app display name configured in the host app bundle.
hasVideobooleanWhether the incoming session should be marked as video-capable.
timeoutMsnumberBest-effort timeout in milliseconds. Defaults to 60000.
acceptTextstringCustom label for the accept action. Android only.
declineTextstringCustom label for the decline action. Android only.
extraRecord<string, any>Arbitrary JSON metadata echoed back in all events.
androidAndroidIncomingCallOptionsAndroid-specific behavior overrides.
iosIOSIncomingCallOptionsiOS-specific behavior overrides.

AndroidIncomingCallOptions

Android-specific incoming call presentation options.

PropTypeDescription
channelIdstringNotification channel identifier. Defaults to incoming_call_kit.
channelNamestringNotification channel display name. Defaults to Incoming Calls.
showFullScreenbooleanWhether Android should request full-screen presentation when possible. Defaults to true.
accentColorstringOptional accent color in #RRGGBB or #AARRGGBB form.
ringtoneUristringOptional ringtone URI string. Example: android.resource://com.example.app/raw/ringtone
isHighPrioritybooleanWhether to mark the notification as high priority. Defaults to true.

IOSIncomingCallOptions

iOS-specific incoming call presentation options.

PropTypeDescription
handleType'generic' | 'phoneNumber' | 'emailAddress'CallKit handle type. Defaults to generic.
supportsHoldingbooleanWhether the call should support hold. Defaults to true.
supportsDTMFbooleanWhether the call should support DTMF. Defaults to false.
supportsGroupingbooleanWhether the call should support grouping. Defaults to false.
supportsUngroupingbooleanWhether the call should support ungrouping. Defaults to false.

ActiveCallsResult

Result payload for getActiveCalls().

PropTypeDescription
callsIncomingCallRecord[]Calls still tracked by the native implementation.

EndCallOptions

Options for ending a single tracked call.

PropTypeDescription
callIdstringThe call identifier originally passed to showIncomingCall().
reasonstringOptional application-defined reason string.

EndAllCallsOptions

Options for ending all tracked calls.

PropTypeDescription
reasonstringOptional application-defined reason string.

IncomingCallPermissionStatus

Result payload for permission checks.

PropTypeDescription
notificationsPermissionState | 'notApplicable'Notification permission state. iOS CallKit itself does not require runtime notification permission, so iOS returns notApplicable.
fullScreenIntentPermissionState | 'notApplicable'Full-screen intent permission state. iOS returns notApplicable. Android 13 and below resolve this as granted.

PluginVersionResult

Plugin version payload.

PropTypeDescription
versionstringVersion identifier returned by the platform implementation.

PluginListenerHandle

PropType
remove() => Promise<void>

IncomingCallEvent

Payload delivered by plugin listeners.

PropTypeDescription
callIncomingCallRecordThe call that triggered the event.
reasonstringOptional reason for the state transition.
source'api' | 'user' | 'system'Origin of the action.

Type Aliases

IncomingCallState

Supported incoming call states.

'ringing' | 'accepted' | 'ended'

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'