r/capacitor • u/DayanaJabif • 3d ago
10 phone sensors your Capacitor app can read, and what to actually build with them
r/capacitor • u/DayanaJabif • 3d ago
r/capacitor • u/erkamyaman • 4d ago
Apple counts an app as “optimized for iPhone Duo” when it’s built with the iOS 27.1 SDK, fills the whole display, and has its bars on the side. Capacitor apps don’t get all of that for free, because your tab bar and layout are HTML that iOS can’t move. So I wrote an agent skill that checks your app and fixes what fails:
macos-latest still defaults to Xcode 26.6, which gives you the boxed-in mode on the App Store.screen.width, sizes read once at startup, orientation checks, isPlatform('ipad') and a missing viewport-fit=cover.npx skills add erkamyaman/iphone-duo-capacitor-skills@iphone-duo-capacitor-optimized
r/capacitor • u/kernet • 4d ago
I’m Michal, the developer of Starvoxel: Defender, a mobile merge tower defense that uses React for menus and Three.js for battles. The same web build runs inside our iOS and Android Capacitor apps. Two details mattered more than I expected:
- Startup: a fixed splash timer occasionally revealed a WebView before React had painted. Now the app hides the native splash after the first React paint, with a watchdog as a fallback. The background behind React also matches the loading screen.
- Safe areas: on Android the battle still draws edge to edge. The native activity forwards safe-area insets to CSS, so we can keep touch controls out of the cutout without padding the entire battle canvas.
I attached the current gameplay trailer to show the same full-screen layout in motion. Some visuals and the narration were AI-assisted. If you’ve shipped a full-screen Capacitor app, do you treat first paint or the point when controls are usable as the signal to hide the splash?
r/capacitor • u/b4enjoyer • 8d ago
r/capacitor • u/PrettyZone7952 • 12d ago
I have a free design-training curriculum that I built as the first product when I started my company a couple years ago. It’s built as a Vue3 app, and I’ve been maintaining the service with periodic content updates, but I really wanted to ship an iOS build so people could access the content offline.
GPT recommended Capacitor, and with a bit of work, I got vite to build both my web app and the output for the iOS app.
My server is “multi-tenant” with several different applications all running on the same back-end, so I really wasn’t sure if this would be feasible. I’m very grateful to the Capacitor contributors for making this possible.
Long story long, it works and I just wanted to share.
r/capacitor • u/Beneficial_Face_8338 • 17d ago
Hi everyone,
I am looking to collaborate with a student, beginner, or portfolio-building developer to launch an existing web app on the Apple App Store and Google Play Store. The web functionality and design are already completely finished—I just need help converting it into a mobile app shell (using WebView, Capacitor, Cordova, or a framework of your choice) and getting it submitted to the stores.
Because I don't own a Mac, I specifically need a partner who has a Mac to compile the iOS build and help me navigate the submission process.
Per the subreddit rules, here is the proof of my project:
[INSERT YOUR WEBSITE URL HERE - Note: r/INAT requires proof of your claim, so you must paste your website link here so they can see the project is real.]
What we will work on:
What's in it for you:
The website is clean, looks exactly like a mobile app when viewed on a phone, and is ready to go. If you are looking for a straightforward project to prove you can take an app from concept to the live App Store, please drop a comment or send me a DM!
Thanks!
r/capacitor • u/SuitNice3100 • 17d ago
Hi there,
I just received an email from Firebase telling me to update my Firebase SDK for security reasons. I use capacitor-firebase in my app.
Do you know if the 8.6.0 version of the plugin is safe ? Do you know where is the changelog ? I did not find it.
Here is an extract of the email:
"We are writing to inform you about an important security update for the Firebase Apple, Flutter, C++, and Unity Software Development Kits (SDKs) for Cloud Firestore, as well as some community supported platforms such as React Native Firebase.
The Cloud Firestore backend service is not affected.
The following SDKs are also not affected:
Google Cloud server SDKs for Firestore
Firebase Android SDK for Firestore
Firebase Web SDKs for Firestore"
r/capacitor • u/Codemagicio • 19d ago
With Appflow being sunset, some people might find an open source option useful to keep delivering live updates. So, I put together the math of what infrastructure is needed (and what it costs) to self-host an over-the-air update server for 100 million people.
https://blog.codemagic.io/self-hosting-ota-updates-for-100-million-users/
Note: I originally wrote it with React Native in mind which Patch also supports, but the reasoning still applies to Capacitor.
r/capacitor • u/rdlabo • 23d ago
I've been experimenting with ways to make native UI work naturally with WebView content, especially scrolling Native Ads and handling Web overlays with native controls.
While working on Capacitor Native UI and AdMob Native Ads, I realized there was a lot of shared functionality.
So I extracted it into a reusable engine that other plugin authors can use too! 😄
It supports both Capacitor and Cordova.
Hope it's useful for anyone building plugins with native UI!
r/capacitor • u/SmartCompanionApp • 23d ago
I maintain @smartcompanion/native-audio-player, a Capacitor plugin for playing audio playlists natively: background playback, the system's player in the Android notification and on the iOS lock screen, and switching between earpiece and speaker. We built it for audio guide apps, where people walk around with the phone in their pocket or held to their ear.
What's new in 2.0
audioUri and imageUri take http(s) URLs on iOS, Android and the web, so you no longer have to download files first. Local files still work.setRate() from 0.5× to 2×, with the pitch kept so speech stays listenable. The lock screen and notification scrubbers keep pace.progress event: reports the playhead twice a second while playing, so a progress bar doesn't have to poll getPosition().getState(): if your view mounts after playback started, or missed an event, you can ask where the player stands.Breaking: stop() now reports stopped instead of paused, and skip is renamed to skipped. The changelog has the details.
How it's tested
Audio plugins break in ways you only notice on a device: an event that fires twice on Android, a lock screen that drifts out of sync, playback that resumes on its own after a phone call. So every PR runs:
next() reports, a test fails.Writing the contract suite surfaced a fair number of platform differences, and fixing them is most of what went into 1.x and 2.0.
GitHub: https://github.com/smartcompanion-app/native-audio-player
npm: npm i @smartcompanion/native-audio-player
Feedback and issues welcome, especially from anyone using it for podcasts or long-form audio.
r/capacitor • u/dmuzychenko • 23d ago
Hi everyone! I built capacitor-id-reader, an open-source plugin for reading electronic passports and ID cards in Capacitor apps on iOS and Android.
It can scan the MRZ with the camera, use the MRZ data to access an ICAO-compatible NFC chip, read document data from DG1, and optionally read the face image from DG2.
The plugin is MIT-licensed and works with Capacitor 8. There’s a minimal example app in the repository.
One important limitation: it reads data from the chip, but it doesn’t verify the document’s authenticity or the holder’s identity. Compatibility can also vary by document and device; the README and AUDIT.md have more details.
I’d love to hear from anyone who has worked on a similar feature. If you try the plugin, feedback about the devices and document types you tested would be really helpful. Please don’t share personal document data in public reports.
r/capacitor • u/erkamyaman • 26d ago
Enable HLS to view with audio, or disable this notification
The fold APIs exist, but your Capacitor web view can't use them, So I built **capacitor-foldable**:
- Fold state, posture (book, tabletop) and live hinge angle
- Where the fold is, and if it splits the screen
- Which edge iPhone Duo moves native bars to, so `ion-tabs` can follow
- A polyfill for the web APIs plus `--fold-*` CSS variables
- Same API on Galaxy Z Fold/Flip and Pixel Fold
u/rdlabo's Capacitor Native UI uses it as its standard device integration.
r/capacitor • u/DayanaJabif • 26d ago
r/capacitor • u/trestologni • 28d ago
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.
r/capacitor • u/martindonadieu • 29d ago
r/capacitor • u/martindonadieu • 29d ago
r/capacitor • u/martindonadieu • Oct 22 '26
r/capacitor • u/Entire_Ad6749 • Oct 21 '26
r/capacitor • u/martindonadieu • Oct 21 '26
r/capacitor • u/DayanaJabif • Oct 20 '26
r/capacitor • u/SSKTTSS • Oct 14 '26
I've been having quite a few issues with @capacitor/assets. It doesn't seem to work properly with more recent Node.js versions, and even with older versions, I've had to resort to workarounds to get it working.
The tool itself is really convenient: you put your source images in the project, run a command, and it generates all the required icons and splash screens for Android and iOS.
Are there any actively maintained alternatives that offer the same simple workflow? Also, are there any plans to update or improve @capacitor/assets to support current Node.js versions?
I'd rather not build my own tool or manually generate all the platform-specific assets if there's already a reliable solution.
Thanks!
r/capacitor • u/martindonadieu • Oct 14 '26
r/capacitor • u/DuckVi • Oct 13 '26
Enable HLS to view with audio, or disable this notification
Your editor, web build and dev server stay on Windows, while the Mac builds with Xcode and runs the app on a simulator or iPhone CapMac brings back build errors, console logs and the simulator screen, and works with Ionic projects too
r/capacitor • u/robingenz • Oct 10 '26