Capgo Live Updates

Capgo Live Updates

By Martin DonadieuTechnology
Download on the App Store

Capgo Live Updates episodes

  • Capacitor Geofences Not Triggering Ios
    iOS geofencing works differently than Android, prioritizing battery life and privacy. The episode explains how iOS uses Core Location’s CLRegion objects, the 20‑second rule for entering a region, and why small radii and quick passes often fail. Listeners learn why always‑allow permission is required for background triggers, how precise‑location toggles, low‑power mode, and the “already inside” trap affect reliability, and why iOS limits apps to 20 monitored regions.
    The discussion then covers practical work‑arounds: using a rolling refresh (19 nearest geofences plus a large refresh region) to stay under the limit, layering a large geofence with a short‑lived GPS or iBeacon scan for door‑level accuracy, and bypassing the suspended JavaScript engine with a native background‑geolocation plugin that posts directly to a server. Finally, the episode shows how Capgo’s live‑update feature lets teams tweak radii or region lists without a new App Store release.
    Topics:
    - 20‑second entry rule and jitter filtering
    - Always‑allow permission and privacy settings impact
    - Rolling refresh strategy to manage the 20‑region limit
    - Hybrid app background handling with native plugin posting to backend
    - Multi‑stage geofence plus beacon approach for precise triggers
    Full article
    https://capgo.app/blog/capacitor-geofences-not-triggering-ios/
    21 min
  • Capacitor File Handling Guide
    Capacitor developers learn how to separate web‑layer updates from native code using Capco Live Updates, allowing JavaScript and CSS bundles to be pushed over‑the‑air without triggering App Store review, as long as core app purpose stays unchanged. The episode explains the correct use of iOS and Android storage directories—data for user‑generated content, Library/No‑Cloud for large offline assets, and cache for temporary files—to avoid automatic rejections and OS‑driven deletions.
    Listeners also get concrete guidance on file handling pitfalls: disabling UTF‑8 encoding when writing binary files, using convertFileSrc to stream media directly from native storage instead of loading large Base64 strings, and leveraging background downloader/uploader plugins for reliable large transfers. The discussion rounds out with tips on secure file pickers, file sharing via Capacitor‑FileSharer, and automating CI pipelines with AI agents.
    Topics:
    - Live updates for hot‑fixing web code without App Store review
    - Choosing the proper native directory for user data, offline media, and cache
    - Writing binary files correctly by omitting UTF‑8 and using base64
    - Streaming large media with convertFileSrc to avoid memory overload
    - Using background downloader/uploader plugins and system file pickers for reliable transfers
    Full article
    https://capgo.app/blog/capacitor-file-handling-guide/
    23 min
  • Capacitor Electron Desktop App
    Developers are urged to stop using the abandoned capacitor-community/electron package and instead build a minimal custom Electron shell. A roughly 60‑line JavaScript setup—split into a main process script and a preload script—provides direct control over the latest Electron version, eliminating outdated dependencies and critical security risks.
    The guide also covers adapting the build tool to use relative asset paths, switching to hash routing or client‑side navigation, and securing the Electron environment with context isolation, disabled node integration, and sandboxing. Finally, it explains how to add Capco Electron Updater for tiny live‑update bundles, automatic rollback on failed loads, and smoother deployment without massive installers.
    Topics:
    - Replace unmaintained capacitor-community/electron plugin with a custom 60‑line Electron shell
    - Configure build tool for relative asset paths and adjust routing for file protocol
    - Create secure IPC bridge via preload script with strict Electron security flags
    - Integrate Capco Electron Updater for lightweight live updates and automatic rollback
    - Address code signing and installer size challenges for macOS and Windows
    Full article
    https://capgo.app/blog/capacitor-electron-desktop-app/
    25 min
  • Capacitor Device Sensors Guide
    The guide walks developers through using Capgo’s small, focused Capacitor plugins to read motion, compass, pedometer, barometer, light and proximity sensors on iOS and Android. It shows how to install only the needed plugins, add the required usage strings to Info.plist, and request runtime permissions, then start, listen to, and stop sensor updates while keeping battery impact low.
    Listeners are demonstrated for accelerometer tilt calculations, shake detection, device orientation, compass heading with accuracy monitoring, step counting with activity‑recognition handling, and barometric altitude estimation. The article also highlights platform quirks—such as Android’s missing relative altitude, iOS permission rejections, and the need to declare optional hardware features—to avoid App Store review issues.
    Topics:
    - Installing and configuring only the sensor plugins you need
    - Requesting and handling permissions for motion and location
    - Managing sensor listeners efficiently to prevent battery drain
    - Dealing with platform‑specific quirks like barometer altitude and compass calibration
    Full article
    https://capgo.app/blog/capacitor-device-sensors-guide/
    29 min
  • Capacitor Development On Windows
    Set up Capacitor on Windows 11: Node or Bun, JDK 21, Android Studio and the emulator, USB debugging, PowerShell fixes, long path issues, and iOS builds... Push JS, CSS, and asset fixes to users in minutes, with channels, staged rollouts, and one-click rollback. Signed iOS and Android builds in the cloud, plus store submission. No Mac needed.
    Topics:
    - What works on Windows and what does not
    - 1) Install Node or Bun
    - Fix the PowerShell execution policy
    - 2) Install JDK 21
    - 3) Install Android Studio and the SDK
    Full article
    https://capgo.app/blog/capacitor-development-on-windows/
    24 min
  • Capacitor Community Sqlite Alternative
    Capacitor Community SQLite is being replaced by Capco's FastSQL engine in Capacitor 8. The episode explains why the legacy plugin’s JSON bridge and bundled SQLCipher cause severe UI lag, app‑size bloat, and export‑compliance headaches, especially when handling tens of thousands of rows or CRDT logs. Listeners learn how FastSQL bypasses the bridge with a native local HTTP server and adopts SQLite WASM with OPFS for web, delivering real‑time disk writes and eliminating manual save steps.
    The discussion then walks through the migration process: configuring iOS and Android networking permissions, copying unencrypted .db files or chunked row‑by‑row transfers for encrypted databases, and adapting code to FastSQL’s single‑statement API. It also covers when to stay on the old plugin (Electron, TypeORM, simple apps) and how Capco Live Updates let you patch JavaScript migration logic without another App Store review.
    Topics:
    - Bridge serialization bottleneck and JSON payload overhead
    - Native local HTTP server setup and required platform permissions
    - File‑level database copy versus chunked row migration for encrypted data
    - API changes from createConnection/open to fastsql.connect and single‑statement execution
    - Criteria for staying with the legacy plugin versus switching to FastSQL
    Full article
    https://capgo.app/blog/capacitor-community-sqlite-alternative/
    26 min
  • Capacitor Development On Linux
    The episode explains how to develop, build, and maintain native iOS and Android apps using only a Linux machine. It walks through setting up a fast JavaScript runtime with Bun, installing JDK 21 for Capacitor 7/8, and using the Android command‑line SDK with KVM‑accelerated emulators. For iOS, it shows how Capacitor generates the iOS project on Linux, then uses Capco’s cloud build service to compile, sign, and upload the app from Linux, leveraging OpenSSL‑generated certificates instead of macOS Keychain.
    Listeners also learn how to configure Linux permissions for KVM and USB debugging, replace heavyweight Android Studio with lightweight CLI tools, and employ Capco Live Updates to push web‑asset changes instantly to users without a full App Store review. The discussion highlights the trade‑offs of cloud builds versus a dedicated Mac mini and the long‑term maintenance benefits of this workflow.
    Topics:
    - Using Bun and JDK 21 for faster Capacitor builds on Linux
    - Enabling KVM and writing UDEV rules for Android emulators and device debugging
    - Generating iOS signing certificates with OpenSSL and deploying via Capco cloud builds
    - Replacing Android Studio with command‑line SDK tools for a lean environment
    - Leveraging Capco Live Updates for instant over‑the‑air web‑asset patches
    Full article
    https://capgo.app/blog/capacitor-development-on-linux/
    25 min
  • Capacitor Community Contacts Alternative
    Capacitor Community Contacts' old plugin lacks an update method, forcing developers to delete and recreate contacts, which breaks backend IDs and can erase native‑only fields. The new Capco plugin introduces non‑destructive updates, permission‑free contact picking via OS delegation, and read‑only display name handling that offloads localization to the device. It also adds pagination and selective photo loading to prevent bridge memory spikes on large address books.
    The episode walks through a migration strategy using a temporary adapter layer that lets both plugins coexist, handling iOS 18 limited‑access cases and showing how Capco Live Updates let you push UI fixes without App Store review. It highlights practical steps for safer data handling, compliance with upcoming Google Play policies, and performance‑optimized contact retrieval.
    Topics:
    - non‑destructive contact updates vs delete‑recreate workaround
    - permission‑free OS delegation for contact picking
    - pagination and lazy loading of contact photos to avoid bridge overload
    - adapter‑layer migration path for zero‑downtime plugin swap
    - handling iOS limited‑access permissions and using live web‑layer updates
    Full article
    https://capgo.app/blog/capacitor-community-contacts-alternative/
    22 min
  • Capacitor Apple Watch App
    Apple Watch apps cannot use WKWebView, so a Capacitor‑based mobile app must split its architecture. The iPhone runs the heavy TypeScript logic in a web view, while a native SwiftUI watch app acts as a thin UI layer that receives data via Apple’s Watch Connectivity framework. The episode explains why Apple blocks web views on watchOS, how to set up the required Xcode targets, and the importance of matching bundle ID prefixes to satisfy provisioning rules.
    Listeners learn three communication channels—sendMessage for immediate foreground interactions, updateApplicationContext for background state syncing, and transferUserInfo for ordered, reliable queues. Practical tips include stripping null values before crossing the Swift‑to‑JavaScript bridge, versioning payloads to avoid crashes during asynchronous native updates, and using Capgo live updates for web code while handling native watch changes through the App Store review process.
    Topics:
    - Split‑brain architecture: phone handles heavy logic, watch runs native UI
    - Configuring Xcode targets and bundle ID prefixes for watch companion apps
    - Choosing the right Watch Connectivity channel for real‑time vs. background data
    Full article
    https://capgo.app/blog/capacitor-apple-watch-app/
    22 min
  • Build Ios App From Linux Capacitor Capgo Build
    Ship a signed iOS build to TestFlight from Ubuntu, Fedora or any Linux box: generate the ios/ project with Capacitor, create certificates with OpenSSL, and ... Push JS, CSS, and asset fixes to users in minutes, with channels, staged rollouts, and one-click rollback. Signed iOS and Android builds in the cloud, plus store submission. No Mac needed.
    Topics:
    - The division of labor
    - Prerequisites
    - 1) Generate the iOS project on Linux
    - 2) Sync web assets before every build
    - 3) Create signing material without a Mac
    Full article
    https://capgo.app/blog/build-ios-app-from-linux-capacitor-capgo-build/
    22 min

About Capgo Live Updates

From the publisher's feed

Capgo Live Updates is a podcast for developers building mobile apps with Capacitor and Ionic. Each episode explores an article from the Capgo blog, covering over-the-air updates, native integrations,…