r/capacitor • • Jun 04 '25

Add native widgets to iOS and Android with Capacitor

Post image
46 Upvotes

Hey everyone!

Some time ago I shared my first Capacitor plugin – CapPrinter – here with you. Today I’m excited to introduce two new plugins I’ve built, both aimed at solving a common problem in hybrid app development: real widgets for Capacitor apps on iOS and Android.

I was working on my app Holiday Countdown and wanted to add widgets for both platforms.

I came across this great plugin by 0xn33t:
🔗 https://github.com/0xn33t/capacitor-widgetsbridge-plugin
While it worked perfectly for iOS, it didn’t support Android – and I needed both.

So I started by forking the repo, made some changes, and eventually decided to rebuild everything from scratch to support both platforms with extended functionality.

👉 capacitor-widget-bridge
Cross-platform Capacitor plugin to sync data between your app and native widgets (iOS + Android).

But there was one more challenge:
I wanted to show user-uploaded images in the widget (like background photos), so I built a second plugin for that:

👉 capacitor-widget-image-store
A lightweight Capacitor plugin to save, delete, and list base64-encoded images in a shared app container — perfect for widget integrations on iOS and Android.

Both plugins combined allowed me to:

  • Create iOS and Android home screen widgets

  • Add Lock Screen widgets on iOS

  • Build a Live Wallpaper widget on Android (displaying countdowns + images)

My app is currently under review in the App Store and Play Store – so the widgets should be live in a few hours/days.

If you want the full technical write-up, I published an article here:
👉 Medium – How to Add Widgets to Your Capacitor App

Feedback is very welcome!

Feel free to open an issue, contact me directly, or share your own implementation – I’d love to see what you build with it. 🙌


r/capacitor • • Jun 10 '25

🚀 New Capacitor Plugin: Use iOS Live Activities (from JS!)

Post image
39 Upvotes

Hey everyone!

A few days ago I posted about using widgets in Capacitor apps – and in the comments, u/Important-Ostrich69 asked:

“Is there a way of doing Live Activities with this in Capacitor?”

At the time, the answer was “not yet”.

So… I built a plugin (again).

🧩 capacitor-live-activity

This plugin lets you trigger iOS Live Activities from JavaScript:

  • Start, update, and end an Activity from your web code

  • Powered by Swift/ActivityKit on native side

  • Clean TypeScript API on the JS side

You’ll still need a SwiftUI widget and some native setup (App Groups, entitlements etc.) – but the plugin handles the bridge.

🧪 Example App included

The repo has a full example app with:

  • Basic JS only (no frontend framework)

  • Screens for timer, food delivery, workouts and more

  • Buttons to trigger Live Activities directly

👉 GitHub: kisimediaDE/capacitor-live-activity

👉 Full article with background: Medium

Would love feedback, contributions, or ideas!


r/capacitor • • Oct 01 '25

capacitor packages will start passing 1 million downloads per month on npm in 2026.

29 Upvotes

capacitor//core is on 750k now. More than double a year ago.

As someone who's been on the capacitor train for a long time it's really great to see the ecosystem growing :)


r/capacitor • • Apr 07 '23

The Push Notifications Guide for Capacitor

27 Upvotes

You want to add push notifications to your Capacitor app with support for Android, iOS and Web?

I created a (very) detailed guide to help you integrate Firebase Cloud Messaging.

Check out the new blog post ⬇️

https://capawesome.io/blog/the-push-notifications-guide-for-capacitor/


r/capacitor • • Sep 27 '25

Launched my first app to the AppStore using Capacitor JS built with Vanilla JS

Thumbnail
gallery
25 Upvotes

After 10 years as a web dev (mostly JS + PHP), I finally shipped a personal project as a native iOS app. I wanted to share the approach I took and the trade-offs I ran into in case anyone else is considering going the hybrid route.

Stack & Choices

  • Capacitor JS: Discovered it a couple years ago

  • Vanilla JS: Instead of React/Vue, I went framework-free. It gave me tighter control and kept things fast.

  • Tailwind CSS: Made styling + prototyping quick while keeping the final CSS bundle small (purge helps a lot when performance is critical).

This combo (vanilla JS + Tailwind) ended up being lightweight, simple, and performant enough for a hybrid app.

The App – OfflineTunes
It’s a music player that supports MP3, FLAC, etc. The unique feature is Finetunes: instead of regular playlists, your Next/Previous buttons turn into Approve/Deny controls. You can go through tracks one by one and:

  • Approve → mark favorites, bulk rate, add to playlists, or move files

  • Deny → delete from device to clean up your library

It’s been surprisingly effective for organizing large collections. Personally, I use it while driving. controlling it entirely from steering wheel buttons. App is still being actively developed so are fixes that needs to be made. Would love some feedback if anyone has the time.

Capacitor Trade-offs

  • App size: My actual PWA size is ~140KB gzipped and <400KB without, but the iOS build is 35MB+. That’s just the overhead of Capacitor JS and some Native plugins i guess.

  • UI polish: Native iOS components feel buttery smooth with their spring physics + animations. Recreating that in web tech is hard. Even with custom components + libraries, it’s tough to match Apple’s native feel.

  • Performance: On the bright side, an optimized Capacitor JS app feels close to an unoptimized native app. For something like a music player, it’s “good enough.”

Would I recommend this route?
For small, personal projects, yes. For larger apps where design polish and animations are critical. probably not.

If anyone here has tackled the same challenges, I’d love to hear how you approached UI/animation performance in hybrid apps. Also what is the smallest achievable bundle size using Capacitor JS?


r/capacitor • • Feb 18 '25

Announcement: New Updates and Features for Ionic's Open Source Projects!

25 Upvotes

Hey all!

As promised, here's what we've got in the pipeline!: https://ionic.io/blog/coming-soon-new-updates-features-for-ionics-open-source-projects


r/capacitor • • Oct 05 '26

The Road to Capacitor 9

24 Upvotes

Hey r/capacitor — I wrote up our latest Capacitor update over on the Ionic blog and figured folks here might be interested. Quick rundown:

CocoaPods goes read-only Dec 2, 2026 — trunk freezes permanently, no new podspecs or version bumps. This won't break Capacitor directly, but it'll stop updates flowing to CocoaPods-hosted native deps your plugins depend on (Firebase, Stripe, etc). We've supported Swift Package Manager since Capacitor 6 and made it default in 8, so if you haven't migrated yet, now's the time: https://capacitorjs.com/docs/ios/spm

We're exploring a Capacitor MCP server so agents can pull real project info instead of guessing from training data. If you've had AI confidently get something wrong about Capacitor (the more specific the example, the better), I'd genuinely love to hear it in our GitHub discussion: https://github.com/ionic-team/capacitor/discussions/8555

Three plugins are now fully open to the community: Contacts, Calendar, and Health & Fitness (HealthKit/Health Connect). These started as OutSystems-exclusive and have been running in production for a while — now everyone gets them.

What's actually landing in Capacitor 9:

  • Cordova Optionality — you can finally exclude the Cordova compatibility layer from your builds

  • iOS internals modernized: remaining Objective-C converted to Swift, and we're dropping XCFramework distribution (plugin authors will need to run migration tooling)

  • Early groundwork for multi-instance/windowed apps for foldables and large screens

  • Ongoing work to make Capacitor itself easier for AI agents to understand (docs, API annotations)

Full post with more detail: https://ionic.io/blog/the-road-to-capacitor-9


r/capacitor • • Feb 11 '25

Important Announcement: The Future of Ionic’s Commercial Products

24 Upvotes

Please check out our new blog post on the future of Ionic’s commercial products: https://ionic.io/blog/important-announcement-the-future-of-ionics-commercial-products


r/capacitor • • Jan 24 '26

I got tired of juggling terminals for Capacitor dev, so I made a thing

23 Upvotes

Hey everyone,

I've been doing Capacitor/Ionic development for a while now and kept running into the same frustrations:

  • Xcode's Derived Data eating my disk alive

  • Constantly clearing Gradle caches when things got weird

  • Forgetting which terminal had my dev server vs my build vs my simulator logs

  • Running the same cleanup commands over and over when builds failed mysteriously

So I built a little terminal dashboard to put everything in one place. Called it lazycap (yes, inspired by lazygit/lazydocker).

It's nothing revolutionary - just a TUI that lets you:

  • See all your devices/simulators in one spot

  • Run, build, sync with single keystrokes

  • Access 30+ debug/cleanup actions when things break (clear derived data, nuke node_modules, restart ADB, etc.)

  • Watch all your process logs in one place

It also has a plugin system with MCP server integration (so AI assistants like Claude Code can control your dev environment) and Firebase Emulator integration built in. Feel free to contribute your own plugins.

Disclaimer: I built this in an evening with Claude Code. It's not perfect, but it works for my workflow.

Anyway, I've been using it daily and it's saved me a lot of headaches. Figured I'd open source it in case anyone else finds it helpful.

GitHub: https://github.com/icarus-itcs/lazycap

It's free and open source. If you try it and have ideas or find bugs, contributions are welcome. Hope it helps someone.


r/capacitor • • Dec 29 '25

🚀 capacitor-widget-bridge update (Dec 29, 2025)

23 Upvotes

Capacitor 8 support is now merged & released ✅

What’s new:

  • ✅ Full Capacitor 8 compatibility

  • 🧹 Updated README

  • 📱 Example App dependencies bumped to Capacitor 8.0.0

  • 🤝 Big thanks to dudynets for the PR!

🔗 GitHub: https://github.com/kisimediaDE/capacitor-widget-bridge

📦 npm: https://www.npmjs.com/package/capacitor-widget-bridge

npm install capacitor-widget-bridge 
npx cap sync

Feedback & contributions welcome 👋


r/capacitor • • Jul 21 '25

SQLite Plugin for Capacitor

Thumbnail
capawesome.io
23 Upvotes

r/capacitor • • May 20 '26

AMA - What would you like to know/understand about building mobile apps with Capacitor?

22 Upvotes

Been using Capacitor and Ionic since the early days, built and shipped multiple production apps with it. Ionic Developer Expert. Currently working as a Developer Advocate at Capawesome.
Ask me anything about building, shipping, plugins, app store releases, OTA updates, native integrations, etc.


r/capacitor • • Feb 26 '26

Why does capacitor have a bad rap?

Post image
22 Upvotes

Alright, this just happened? Why is this so? What has changed?

I was going to start a project using capacitor, now really having second thoughts.


r/capacitor • • May 11 '26

Introducing Capawesome Platform: The Mobile App Platform for Modern Teams

Thumbnail
capawesome.io
21 Upvotes

We're launching Capawesome Platform today, which merges Capawesome Cloud (Live Updates, Native Builds, App Store Publishing) and our Insider SDKs into a single product with one website, one onboarding flow, and one pricing system.

Feel free to check it out!


r/capacitor • • Oct 30 '25

Thank you for making cross-platform development so easy with Capacitor!

Thumbnail
gallery
20 Upvotes

Hi everyone,

I just wanted to say a huge thank you for creating Capacitor — it’s an amazing technology. In just four days, I was able to build cross-platform iOS and Android apps on top of my existing site, TrueSize.net (built with Vue & VitePress). The process was really smooth, and I had a first working version of the apps running in just a few hours.

I initially tried using React Native, but it wasn’t going well — I would have had to rewrite the entire site. Capacitor made it so much faster and simpler. My apps aren’t very complex, but the fact that I could get them running on both platforms so quickly is incredible.

If anyone wants to check them out (it's an interactive map to compare real size of countries and regions), here are the links:

Android: https://play.google.com/store/apps/details?id=net.truesize.app

iOS: https://apps.apple.com/app/id6754521525

Thanks again to everyone involved in building and maintaining Capacitor — it really made a big difference for me!


r/capacitor • • Jun 08 '25

I have just released a Capacitor camera preview plugin with barcode scanning support

20 Upvotes

Hey guys,

I have just released my first Capacitor plugin.

After forking the Camera Preview plugin by the capacitor-community some time ago to address several iOS-related issues, I thought it was time for a full rewrite of a camera (pre)view plugin. I wanted to use more modern APIs on both platforms, particularly on Android, which had caused me some headaches in the past due to the use of the long-deprecated Camera1 API.

My main focus was performance and fixing long-standing issues, such as autofocus problems on iPhone Pro models.

In addition to that I also added support for barcode scanning. This was not planned initially when I started the implementation, but I needed it for one of our apps and decided it fits well with the plugin’s scope. Now, you can capture photos and scan barcodes in one view just like in the native camera apps on Android and iOS.

I would really appreciate any feedback, bug reports, or suggestions.

Repository: https://github.com/michaelwolz/capacitor-camera-view

Demo: https://giphy.com/gifs/development-plugin-capacitor-fbt8MEqKJsg3xL1ebn


r/capacitor • • May 29 '26

This sub Reddit should be bigger

18 Upvotes

npm weekly downloads have 10xed in the last two years but where are the capacitor reditors!


r/capacitor • • Mar 27 '26

Is there anything Capacitor can't do? Just built myself a fuel comparison app that works nearly worldwide as a side project and I'm blown away.

Post image
17 Upvotes

I built a fuel price comparison app as a side project. 100,000+ stations across Europe, the US, Australia and more. And it runs on both Android and iOS from a single codebase.

The secret? Capacitor. And honestly, I keep underestimating how capable it is.

What I plugged in:

  • RevenueCat for in-app purchases and subscription management

  • Google AdMob for monetization

  • Native plugings for haptic feedback

  • Geolocation, deep linking, native navigation handoff to Waze, Google Maps and Apple Maps

  • Codemagic for building and shipping my apps to the stores!

All of it working together smoothly, feeling genuinely native. No janky transitions, no "this is clearly a web app wrapped in a shell" feeling. Just fast, clean, native-feeling screens.

The app itself solves a simple problem: most fuel apps make you compare prices yourself and navigate via their own clunky built-in maps. Mine shows you all prices at a glance and gets you to the cheapest station in three taps via your own nav app.

But the real thing I'm proud of is the stack. Capacitor has come a long way. If you're sitting on a web app and wondering whether you can ship something that feels truly native without going full Swift or Kotlin, the answer is yes. Absolutely yes. For another app I even integrated native SDK's allongside Capacitor but this was not needed here, but consider adding Apple Carplay and Android Auto soon.

https://goedkooptanken.app/mobile/install if you're curious (Android & iOS). Free, no account needed.

Would love to hear from other Capacitor builders. What plugins are you running?


r/capacitor • • 22d ago

apple wants our live updater (capgo) removed: "based on code in the submitted binary". anyone beat this?

15 Upvotes

our app is a b2b crm built with capacitor. the screens are html/js/css bundled in the binary, it works fully offline, and we ship web-layer fixes with @capgo/capacitor-updater, self-hosted and checksum-verified, never native code.

apple rejected the last version twice in a row for the updater, under 2.3.1(a):

We continue to find the app contains live content update functionality that can modify the app's behavior after approval. This finding is based on code in the submitted binary and not on a specific screen in the app.

I replied in the thread and app review confirmed:

It would be appropriate to remove the remote update functionality and all code related to it before resubmitting. Developers are responsible for all code included in the binary submission, including code from third-party SDKs and libraries.

so a reviewer didn't see something on screen, they found the plugin in the binary.

section 3.3.1(b) of the developer agreement allows downloading interpreted code that doesn't change the app's primary purpose, and thousands of apps ship capgo, capawesome, appflow or expo updates. I appealed to the app review board on 21 october, no answer yet.

  1. has anyone else got this "code in the submitted binary" rejection for a live updater, especially since the 16 october guideline update (2.5.19)?

  2. did anyone win an app review board appeal on it?

  3. if you removed the updater on ios, how do you ship fixes to an offline-first app now?


r/capacitor • • May 29 '26

Capacitor Edge-to-Edge & Safe Areas: The Complete Guide

Thumbnail
capawesome.io
15 Upvotes

r/capacitor • • Dec 17 '25

Made an app that translates workout notes into fully functional workout logs using capacitor

15 Upvotes

Made using Angular, Ionic and capacitor!

Got the app in the apple app store too: https://apps.apple.com/gb/app/gym-note-plus/id6746699616

Happy to answer any questions about it, got 800+ users


r/capacitor • • Nov 05 '25

Easily keep a backend database synced with in-app SQLite for offline-first/local-first Capacitor apps

15 Upvotes

Hi everybody,

We recently released our Capacitor SDK for PowerSync, a sync engine that keeps a backend database in sync with in-app SQLite. We currently support MongoDB, Postgres and MySQL as source databases, with SQL Server support coming later this year.

PowerSync can be used to build synced/local-first/offline-first apps with seamless web and mobile support from a single codebase.

The Capacitor SDK detects the platform and automatically uses:

  • Native SQLite on iOS/Android (via Capacitor Community SQLite plugin)

  • WA-SQLite on web platforms (using IndexedDB or OPFS)

This means you write your code once and get native SQLite performance on mobile with reliable persistence, while maintaining full web compatibility. We built this specifically because Capacitor developers told us they needed the reliability of native SQLite storage (since IndexedDB can be cleared by the OS) without having to rewrite their frontend in another mobile technology.

I'd love to get some feedback from anyone that tries it out!

Read our full announcement and technical deep dive here: https://www.powersync.com/blog/introducing-the-powersync-capacitor-sdk


r/capacitor • • Mar 13 '25

Demystifying live updates

15 Upvotes

I spent a little bit of time today looking under the hood of Capacitor and the various live-updates plugins to figure out how the whole thing works, and found it's remarkably easy to get something bare-bones to work without any plugin.

While definitely not at all production quality (and currently tested only on iOS) this repo showcases a very simple, 100% JavaScript live updater for Capacitor apps.

Feel free to steal ideas, code, ... and feedback is always welcome!

https://github.com/juitnow/juit-capacitor-updater

[edit: added link]


r/capacitor • • Jun 02 '26

What's New in Capacitor 8.4.0: SystemBars, getDouble & packageOptions

Thumbnail
capawesome.io
14 Upvotes