Migrate from Tauri to CapacitorJS #1

Merged
antman merged 6 commits from capacitorjs-spike into main 2026-07-12 04:18:54 +00:00
Owner

Motivation

The first use case for a KtC mobile app is alerting the user when their home server is down. This requires a background task that will make a http request to the server and dispatch a local notification if the server response is non-ok.

Tauri does not have official support for background tasks, and the only community plugin providing background tasks was AI generated and nonfunctional. It's documentation generally had gaps regarding mobile usage, as it's mainly a desktop application framework.

Solution

CapacitorJS provides an official background runner, as well as notifications, preferences, etc. This framework is mobile only, so mobile support and documentation is excellent.

Note: Background runner is only active on physical iOS devices — it does not run on a simulator.

Follow up

Server address is currently hardcoded. Next PR needs to set the server address via preferences and read it in the background worker using CapacitorKV

## Motivation The first use case for a KtC mobile app is alerting the user when their home server is down. This requires a background task that will make a http request to the server and dispatch a local notification if the server response is non-ok. Tauri does not have official support for background tasks, and the only community plugin providing background tasks was AI generated and nonfunctional. It's documentation generally had gaps regarding mobile usage, as it's mainly a desktop application framework. ## Solution CapacitorJS provides an official background runner, as well as notifications, preferences, etc. This framework is mobile only, so mobile support and documentation is excellent. Note: Background runner is only active on physical iOS devices — it does not run on a simulator. ## Follow up Server address is currently hardcoded. Next PR needs to set the server address via [preferences](https://capacitorjs.com/docs/apis/preferences) and read it in the background worker using [CapacitorKV](https://capacitorjs.com/docs/apis/background-runner#capacitorkv)
antman merged commit deda00c0b8 into main 2026-07-12 04:18:54 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kill-the-cloud/phone-app!1
No description provided.