gitwtfhub

wtf is gatephone-concept?

thomasdye12/gatephone-concept — explained in plain English

Analysis updated 2026-05-18

2SwiftAudience · developerComplexity · 4/5Setup · hard

TL;DR

GatePhone Concept is a reference architecture showing how a doorbell event can ring an iPhone like a real call and open a live security camera stream.

Mindmap

mindmap
  root((GatePhone Concept))
    What it does
      Rings iPhone like a call
      Opens live camera stream
      Gate control button
    Tech stack
      Swift
      SwiftUI
      Node.js
      CallKit and PushKit
    Use cases
      Video doorbell concept
      Home automation intercom
      Adapt to your own APNS
    Audience
      Developers
    Setup
      Run backend demo
      Replace adapter functions

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Study a working pattern for turning a doorbell event into a real iPhone call using CallKit.

REASON 2

Adapt the sample code to stream a UniFi Protect camera into a native iOS call screen.

REASON 3

Use the backend example as a starting point for a custom smart-home intercom.

What's in the stack?

SwiftSwiftUINode.jsExpressWebSocket

How it stacks up

thomasdye12/gatephone-conceptarpitbhalla/swift-apprealm/realm-sharedtasks
Stars222
LanguageSwiftSwiftSwift
Last pushed2022-12-192017-08-22
MaintenanceDormantDormant
Setup difficultyhardhardmoderate
Complexity4/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

It is a sanitized reference implementation, you must supply your own APNS keys, auth, and camera integration to make it work end to end.

Wtf does this do

GatePhone Concept is a reference project that shows how to build a smart video doorbell system that behaves like a real phone call on an iPhone. When someone rings the doorbell, instead of a normal app notification, the iPhone rings the way it would for a regular phone call. Answering it opens a live video stream from a UniFi Protect camera, a home security camera system, and shows buttons for actions such as opening a gate. This is not a finished, ready to use product. The author has deliberately stripped out anything private, including real authentication code, Apple push notification credentials, production web addresses, API keys, and any actual home automation rules. What remains is the overall architecture and the connection points where someone would plug in their own systems. The flow works like this: a doorbell event or automation trigger starts a call session on a backend server. That server sends a special Apple push notification used for VoIP calls to the chosen recipient's iPhone. The iPhone's built in CallKit framework shows the native incoming call screen, just like a normal phone call. Once answered, a SwiftUI screen opens a live camera stream from UniFi Protect over a WebSocket connection, along with command buttons the user can tap, such as one to open a gate. The repository includes an example Node.js backend built with Express, sample iOS Swift files for the call handling and camera player, and documentation covering the architecture, API, iOS side, and security considerations. A quick demo lets you run the backend locally and trigger a fake doorbell call, though the push notification adapter only logs what it would send rather than contacting Apple's servers. This project has 2 stars and is best suited for developers who already have their own authentication, camera, and automation systems and want a starting architecture to adapt, rather than someone looking for something to install and use immediately.

Yoink these prompts

Prompt 1
Help me run the GatePhone Concept backend demo and trigger a sample doorbell call.
Prompt 2
Explain how APNS VoIP push and CallKit work together in the GatePhone Concept architecture.
Prompt 3
Show me how to replace the sendVoipPush placeholder with a real Apple push notification setup.
Prompt 4
Walk me through connecting UnifiProtectCameraPlayer.swift to my own UniFi Protect camera.

Frequently asked questions

wtf is gatephone-concept?

GatePhone Concept is a reference architecture showing how a doorbell event can ring an iPhone like a real call and open a live security camera stream.

What language is gatephone-concept written in?

Mainly Swift. The stack also includes Swift, SwiftUI, Node.js.

How hard is gatephone-concept to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is gatephone-concept for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.