惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
C
Check Point Blog
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
Jina AI
Jina AI
博客园 - 【当耐特】
U
Unit 42
月光博客
月光博客
腾讯CDC
Y
Y Combinator Blog
小众软件
小众软件
博客园_首页
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
The GitHub Blog
The GitHub Blog
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
T
Tailwind CSS Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - mfairley/expo-callkit-telecom: 📞 CallKit + Core-...
mfairley · 2026-05-21 · via Hacker News: Show HN

An Expo module — written in Swift and Kotlin — that wraps CallKit on iOS and Jetpack Core-Telecom on Android with API parity. It owns the system call UI, the audio session, and VoIP push — your app owns the media (LiveKit, plain WebRTC, etc.).

The module is opinionated about system integration and unopinionated about media. You wire your media library to the events it emits.

📖 Full documentation: expo-callkit-telecom.mfairley.com

npm version npm downloads docs platform license

📱 See it in action

Outgoing call Incoming (banner) Incoming (full screen)
iOS Outgoing call on iOS (click to watch) Incoming call banner on iOS Incoming call full screen on iOS
Android Outgoing call on Android (click to watch) Incoming call banner on Android Incoming call full screen on Android

▶︎ Click an outgoing-call thumbnail above to watch the video. Or see the full demo on the docs site.

✨ Features

  • 📱 Native calling UI — CallKit on iOS, Core-Telecom incoming-call notification + full-screen intent on Android
  • 🔔 VoIP notifications — APNs VoIP on iOS (PushKit), FCM data messages on Android, parsed natively so calls can be reported from a terminated state
  • 🎵 Ringtones — system ringtone for incoming calls, configurable via the config plugin
  • ☎️ Dialtone — looped dialtone with fade-in for outgoing calls, configurable
  • 🎧 Audio session management — cross-platform port types (builtInReceiver, builtInSpeaker, headphones, bluetoothA2DP, bluetoothHFP, bluetoothLE, airPlay, hdmi, carAudio, usbAudio, lineOut)
  • 🔊 Speaker override and live route-change events
  • 🎚️ Mute, hold, video, DTMF — both directions: app → system and system → app (e.g. native mute button → your media)
  • 🗣️ Call intents on iOS — Recents list, Siri ("call Jane")
  • 🧩 Typed TypeScript API with a single CallSession object that tracks state across the call lifecycle

🧪 Verified against

Tested end-to-end on real devices via the runnable example/ app. Full compatibility matrix: Verified against.

📦 Install

bun add expo-callkit-telecom

Add the config plugin to app.json / app.config.ts. Minimal form:

With custom ringtone and dialtone:

Files in sounds are copied into the iOS bundle and Android raw resources at prebuild time. The full prop type is ExpoCallKitTelecomPluginProps in plugin/src/.

🧠 Concepts

The TS API is organised into three verbs:

Verb Direction Examples
Request App → System startOutgoingCall, answerCall, endCall, setMuted
Report App → System (state) reportIncomingCall, reportOutgoingCallConnected, reportCallEnded
Fulfill App → System (ack) fulfillIncomingCallConnected

Events flow the other way (System → App) via addXxxListener.

🚀 VoIP push payload

When the OS delivers a VoIP push (PushKit on iOS, an FCM data message on Android), the module parses the payload natively — before JS is running — and reports the call to the OS.

The event itself is always the same shape on both transports. All keys are camelCase:

Any keys you put under metadata are forwarded verbatim from the push payload all the way through to your JS event handler. The lib treats them as opaque — you cast at the read site:

Calls.addCallAnsweredListener(({ id }) => {
  const session = /* lookup */;
  const chatId = session?.incomingCallEvent?.metadata?.chatId as string | undefined;
});

Both transports wrap the event under an incomingCall key, just at different layers — APNs in the push payload dictionary, FCM in the data block:

🍎 iOS — APNs VoIP push

Send a VoIP push (apns-push-type: voip) whose dictionary payload nests the event under incomingCall:

🤖 Android — FCM data message

FCM data values must be strings, so JSON-encode the inner event and put it under incomingCall:

Non-incomingCall data messages are forwarded to expo-notifications's service for normal handling.

🧪 Example

example/ contains a runnable Expo app (example/client/) and a zero-dep push-sender script (example/server/). See their READMEs for setup and how to validate VoIP push end-to-end.

🔑 Registering for VoIP push

import {
  registerVoIPPush,
  useVoIPPushToken,
} from "expo-callkit-telecom";

// Once, early in app lifecycle:
registerVoIPPush();

// In a React component:
function App() {
  const voip = useVoIPPushToken();
  useEffect(() => {
    if (voip) {
      // voip.type is "APNS_VOIP" on iOS, "FCM" on Android.
      sendToBackend(voip.token, voip.type);
    }
  }, [voip]);
}

📚 API surface

See src/Calls.ts for full JSDoc. Main areas:

  • SessionsgetActiveCallSession, addCallSession{Added,Updated,Removed}Listener
  • OutgoingstartOutgoingCall, addOutgoingCallStartedListener, reportOutgoingCallConnected
  • IncomingreportIncomingCall, addIncomingCallReportedListener, answerCall, addCallAnsweredListener, fulfillIncomingCallConnected, failIncomingCallConnected
  • EndendCall, addCallEndedListener, reportCallEnded
  • AudiogetAudioSession, setAudioSessionPortOverride, prepareAudioSessionForCall, addAudioRouteChangedListener
  • Mute / Hold / Video / DTMFsetMuted, setHeld, reportVideo, playDTMF and their listeners
  • VoIP pushregisterVoIPPush, getVoIPPushToken, useVoIPPushToken, addVoIPPushTokenUpdatedListener

📝 Platform notes

  • 🍎 iOS — requires the voip background mode and a VoIP push certificate. Uses CallKit + PushKit + WebRTC's RTCAudioSession for manual audio control. Min iOS 15.1.
  • 🤖 Android — requires MANAGE_OWN_CALLS permission, min SDK 26. Uses androidx.core:core-telecom. Incoming calls come via FCM data messages — the config plugin registers ExpoCallKitTelecomMessagingService automatically.
  • 🎟️ VoIP push token type is reported as "APNS_VOIP" on iOS and "FCM" on Android — send both to your backend so it knows which transport to use.

⏰ Keeping connections alive in the background

This module hands the OS a CallKit/Core-Telecom call, which keeps the process alive during a call — but JS timers (setInterval, setTimeout) and JS-side network heartbeats are still subject to background throttling once the screen locks. If your media stack needs an app-level heartbeat (e.g. a WebSocket signalling channel) to survive the background, pair this module with react-native-nitro-keepalive-timer to get native timers that fire reliably while a call is active.

🆚 Comparison with react-native-callkeep

react-native-callkeep is the long-standing React Native library in this space. expo-callkit-telecom solves the same problem but is built on the current generation of platform APIs: CallKit on iOS, Jetpack androidx.core:core-telecom on Android, Swift + Kotlin, the Expo Modules API with a config plugin, and RTCAudioSession coordination for manual-audio WebRTC stacks like LiveKit. It also parses APNs VoIP and FCM data payloads natively, so the cold-start incoming-call case works without app-side glue.

Full side-by-side, compatibility matrix, and migration notes: docs/vs-callkeep.md.