1. Install
RingKit is closed source: your license grants read access to the private repository, and you install straight from it.No license yet? See License — $99/year per app.
2. Configure
RingKit reads static config fromcapacitor.config under plugins.RingKit (it must be
static — on a killed app the JS layer isn’t alive to configure the call):
3. Platform setup
- iOS — add the Push Notifications capability and Background Modes → Voice over
IP (and Audio for the call media), declare the microphone usage string, and send VoIP
pushes to the token from the
registrationevent with a VoIP Services APNs key or certificate (topic = your bundle id +.voip). RingKit reports the call from its PushKit delegate automatically. Full detail: iOS setup. - Android — RingKit’s permissions and components merge in automatically. Request the runtime
notifications permission (Android 13+) before calls arrive, and deliver a
high-priority FCM data message (at minimum
callId) to wake the app: either declare RingKit’s opt-inRingKitMessagingService(if you don’t already have an FCM service), or callRingKitIncomingCall.present(...)from your existing handler (OneSignal, your own FCM, SIP). Full detail: Android setup. Huawei without Google services: HMS Push.
4. Wire the call lifecycle
5. Present a call
From a foreground/background push handler, present the native screen yourself. From a killed app RingKit presents it for you (iOS PushKit delegate / Android FCM service — see the platform pages).6. Try it without a push server
Clone the plugin’sexample/ app and tap Simulate incoming call — it exercises
reportIncomingCall → native UI → callAnswered/callEnded on both platforms with no push
infrastructure. For the killed-app path, use the ready-made test-push senders in
example/scripts/ — see Testing.
Gating your media start on the audio session is what prevents the iOS dead-microphone bug —
see In-call audio.
How the killed-app path works
- iOS — RingKit registers its own
PKPushRegistryfor VoIP pushes. iOS wakes the app for a VoIP push and RingKit reports the call to CallKit synchronously (required by iOS), so the native screen appears even when the app was terminated. - Android — a high-priority FCM data message starts RingKit’s service in the background; it
presents the call via Telecom or the full-screen fallback. When the user answers, RingKit
revives your app (launcher intent) and flushes the
callAnsweredevent onregister()(cold-start actions older thanandroidPendingActionTtlMsare dropped).
Installing and updating
Access from your machine and from CI
npm fetches RingKit with git, so whatever runsnpm i needs read access to the private
repository:
- Your machine — the GitHub account your license gives access to, signed in to git (an SSH
key or a git credential helper). A “repository not found” or permission error from
npm imeans git couldn’t authenticate. - CI — give the job a read-only credential for the repository (a deploy key, or a fine-grained token limited to reading its contents) and let git use it. Or skip git in CI entirely with a pinned tarball (below).
Pinning a copy without git
Every release on the repository’s Releases page has the packed package attached (nickbur-ringkit-<version>.tgz). Download it into your project — for example a vendor/
folder you commit — and install from the file:
Moving to a new version
1
Read the release notes
Each release on GitHub lists what changed; the repository’s
CHANGELOG.md has the full
history.2
Install the new tag (or tarball)
3
Rebuild the native apps
Rebuild and test the iOS and Android apps — RingKit’s native code changes with the
plugin. The killed-app path is worth re-checking with the test senders.
Next steps
iOS setup
Capabilities, Info.plist, and the VoIP push.
Android setup
The wake push and runtime permissions.
Configuration
Every config key and payload mapping.
API reference
Methods and events.
Android reliability
Ringing on strict OEMs (MIUI / EMUI / ColorOS).
Migrating
Coming from another incoming-call plugin.