r/iOSProgramming • u/beatpaq • 5d ago
Discussion Should I use server sent events or websockets for a chat app?
I don't need typing indicators. I heard that websockets apparently can overheat a phone? Is this true?
r/iOSProgramming • u/beatpaq • 5d ago
I don't need typing indicators. I heard that websockets apparently can overheat a phone? Is this true?
r/iOSProgramming • u/locnguyen305 • 5d ago
Hi r/iOSProgramming, I'm Stephen, and I built Rockxy.
The problem I kept hitting was a failing request from a Mac app, a CLI, or an iPhone. I was jumping between a proxy, terminal logs, and browser DevTools just to see what actually went over the wire. I wanted one native macOS workspace where I could capture the traffic, find the request, change one thing, replay it, and diff the result.
That's what Rockxy does. It captures HTTP/HTTPS, WebSocket, GraphQL, AI model calls (SSE/NDJSON), and Web3 RPC from Mac apps, CLIs, the iOS Simulator, and physical devices. You can inspect headers and bodies, edit a request, replay it, and compare the response. Replay and diff work on HTTP today; WebSocket replay and RPC method-level filtering are coming soon.
Tech Stack
- Swift, 100% native macOS using Swift + SwiftUI + AppKit
- Security framework and macOS Keychain for the local root CA and private key
- Notarized, signed build distributed via Apple Notarized, Homebrew Cask; macOS 14+
Development Challenge
The hardest part was HTTPS interception that stays safe by default. Rockxy generates a local root CA, keeps its private key in Keychain so it never leaves the Mac, and only decrypts hosts you explicitly add to the SSL Proxying List; everything else stays encrypted. The second problem was certificate-pinned apps, which break when intercepted. I solved that by detecting the failed handshake and letting pinned traffic pass through automatically, so the app keeps working and you still see the connection.
AI Disclosure
AI-assisted: I wrote and designed a feature flow, suggest an algorithm for the app myself and used AI tools for parts of the code and documentation.
The Community source is available under AGPL-3.0:
brew install --cask rockxy
Repo: https://github.com/RockxyApp/Rockxy
Website: https://rockxy.io
I'd love feedback, and happy to answer questions.
r/iOSProgramming • u/Shot_Bat2938 • 5d ago
I'm a couples therapist in Istanbul. Anthea is a small daily app for couples: each partner answers the same five short questions on their own, and when both have answered they get a short reflection on the two views side by side. On day 7 there's a weekly reading. iPhone, iPad, Apple Watch, 6 languages.
https://apps.apple.com/app/id6785014222
Tech stack
SwiftUI + Swift, split into 6 local SPM packages (features, networking, UI/design system, core models, analytics, a watch bridge) Firebase: Firestore, Cloud Functions in TypeScript (europe-west3), Auth, App Check RevenueCat for subscriptions OpenAI API for the reflections, only after the user gives consent. Generation runs server side in a Firestore trigger once both partners have answered WidgetKit, a Live Activity, and a watchOS app + widget Challenge: the timezone bug
Every couple shares a "journey" doc with a start day, and everything (which day you're on, when the next questions unlock) is calculated from it. When I wrote the pairing function I just used Istanbul time, because that's where I am and all my first users were here.
Then people in the US started using it. For them the "day" was rolling over in the early afternoon. Someone who opened the app the next evening had already skipped past day 2 without ever seeing it. And day 2 is exactly where I lose people, so this was a bad place for a silent bug.
Fix:
the app writes the user's own IANA timezone into their journey when two people pair with a code, the function takes the code creator's timezone, falls back to the partner's, and validates it before using it. If both are invalid it falls back to the old default instead of crashing 11 existing couples were already on the wrong timezone. I migrated them by hand and kept the old value in a backup field in case something went wrong Lesson for me: store the timezone with the data from day one, never assume the server's or your own.
AI disclosure: AI-assisted
I'm a therapist and a designer, not a developer. Most of the Swift and TypeScript was written with Claude Code under my direction. The questions, the clinical framework, the design and every screen decision are mine. I tested the questions with couples in the therapy room long before this was an app.
Happy to answer anything, and I'd really like feedback on the onboarding if anyone tries it. Also curious: how do you handle timezones for shared state between two users in different places?
r/iOSProgramming • u/beatpaq • 5d ago
Wondering if I can make a app that makes a shortcut that would send a screenshot to an app to be processed and then be added to your clipboard, is this possible?
r/iOSProgramming • u/B8edbreth • 5d ago
So apple is requiring us to update our content ratings by 1/15/27. I tried to go in and updating the rating to comply with the new requirement and I cannot edit them. How do we edit these settings?
r/iOSProgramming • u/busymom0 • 5d ago
Until couple days ago, I could go to Trends, proceeds, then filter by last 24 hours to see my proceeds, units etc for all apps at once.
As of yesterday, Apple is no longer generating those trends report. What's the new way to see all the apps proceeds at once?
Also, is anyone else's App Store Connect app showing entirely wrong data compared to website?
r/iOSProgramming • u/RekiHaaku • 6d ago
TL;DR: I have type 1 diabetes, a Medtronic 780G insulin pump, and an Apple Watch I bought for my diabetes. I'm a senior developer, and I built a self-hosted system that correlates glucose, insulin, meals and activity. Neither Apple nor Medtronic does that. It works. But for an app that only I use, that I will never publish, and that I compile on my own computer to read my own health data, Apple requires me to pay USD 99/year. If I don't pay, the app stops working every 7 days. The free alternatives (AltStore, SideStore) strip exactly the permission the app needs.
━━━━━━━━━━
WHO I AM AND WHAT I WANTED
I've worked as a developer for years and I have type 1 diabetes. All the data I need to manage it already exists, but it's split between two companies that don't talk to each other:
• Medtronic has my glucose, my boluses and my insulin on board.
• Apple has my heart rate, steps, workouts, sleep and SpO2.
What actually helps is knowing how they relate. How much does a 40-minute walk after lunch lower my glucose? Why does that meal leave me above 180 mg/dL two hours later? Neither company correlates the data, and neither makes it easy for me to do it.
WHAT I BUILT (ALL SELF-HOSTED, NO THIRD-PARTY CLOUD)
• Glucose and insulin: the pump uploads to Medtronic's cloud, and a bridge pulls the data down into my own Nightscout. I imported 12,000+ historical readings.
• Apple Watch data: I wrote my own iOS app using HealthKit Background Delivery. It sends 8 data types every 5 minutes, even with the phone locked.
• Natural-language meal logging: a local LLM only identifies the foods. Deterministic code calculates the carbs against curated food tables, and a rules layer validates the result. Measured against my real boluses over 138 meals, the median error is 0.2 g and the mean error 7.3 g.
• Pre-bolus timer: accounts for the glucose trend, exercise and insulin on board, and shows on the lock screen.
• Exercise detection, plus alerts when anything stops syncing.
• Design rule: the system logs, analyzes and alerts. It never doses: those decisions stay mine.
All of that works. The problem is that Apple won't let me keep it running unless I pay.
━━━━━━━━━━
HOW APPLE ABUSES ITS POSITION
To install an app I wrote on my own iPhone, I have two options:
• Free account: the app expires after 7 days, and I can have at most 3 of my own apps installed at once. There's no official way to renew automatically: you rebuild and reinstall by hand, and Xcode's session asks for 2FA every so often.
• Apple Developer Program, USD 99/year: the signature lasts a year and renewal can be automated.
The paid program exists to publish apps on the App Store. I don't want to publish anything. I develop locally, for one user (me), on one device (mine). Even so, the only stable way to run my own code on my own data is to pay the subscription.
2) The block is commercial, not technical
Apple does allow HealthKit on free accounts, including background delivery. It says so in Apple's own capabilities table, and I verified it: my app works perfectly. Then on day 7 it stops launching. Same app, same code, same data. The only difference is whether I paid.
3) Proof that it's possible: Europe
In the EU, the law (DMA) forced Apple to allow installing apps outside the App Store. Outside those countries (I live in Chile), that option doesn't exist. Apple can open the platform when a law forces it to, and it chooses not to everywhere else.
4) I asked formally. They didn't answer.
I sent Apple a privacy inquiry with three questions:
• Is there a free way, without the 7-day expiration, to access my own health data?
• Can you confirm in writing that this access depends on paying USD 99/year?
• What is the legal basis?
I got two template replies that answered none of them. The second one literally said: "We would kindly refer you to our previous email."
━━━━━━━━━━
THE FREE ALTERNATIVES I TRIED (AND WHY THEY FAIL)
• AltStore / SideStore / iloader (sideloading): they renew the signature for you every 7 days, which is why they looked like the answer. The problem: they re-sign the app with their own profile, strip the HealthKit entitlement (com.apple.developer.healthkit) and change the bundle ID. The app installs and launches, but it can no longer read any health data. I verified this twice, months apart. On the second attempt, Apple's authentication servers were also returning 429/503 errors, and SideStore couldn't detect my iPhone on iOS 26 (the issues were closed as "not planned").
• Automating the free account: I turned my Mac into a "signing server" that checks the certificate every 2 hours, rebuilds, and reinstalls the app over Wi-Fi. It failed silently three times: once because of macOS permissions, once because of a race with the connection to the iPhone, and once because the iPhone was asleep. Every failure meant days of lost data.
• Paid apps like Health Auto Export: they can't read HealthKit while the phone is locked, so the data arrives in bursts.
• iOS Shortcuts: they can't read HealthKit while the phone is locked either, which is exactly when the overnight data matters most.
• Jailbreak: there isn't one for my iPhone on iOS 26.
• Getting the Apple Watch data out any other way: impossible. There's no server API; the data lives only on the iPhone and leaves only through an app Apple has to sign. The Watch doesn't work with Android.
━━━━━━━━━━
WHAT ABOUT ANDROID?
From what I've researched, Android is much more permissive today:
• I build with Android Studio, install over USB/ADB on my own phone, and the app doesn't expire.
• Health Connect gives access to health data without paying for any subscription.
It isn't perfect, and the trend is worrying. Google has started requiring developer verification to install apps on certified Android phones. It began in September 2026 in a few countries, with a global rollout planned from 2027. There's a free "limited distribution" account (up to 20 devices), and ADB installs would keep working. Still, the direction is the same: more and more permission required to use hardware you already paid for.
I'm considering switching. The cost: throwing away an Apple Watch I bought precisely for this, because it doesn't work outside Apple's ecosystem.
━━━━━━━━━━
MEDTRONIC ISN'T HELPING EITHER
• Their app doesn't write to Apple Health: my data only goes to their cloud.
• There's no public API. I depend on an unofficial, community-built bridge.
• Their Android login server refuses connections from Chile, and the web portal uses a reCAPTCHA that blocks automated login.
• Reading the pump directly over Bluetooth isn't practical: proprietary encrypted protocol, and only one connection allowed.
Result: my own glucose readings take a round trip through a server in Europe to get back to my house.
━━━━━━━━━━
THE BIGGER POINT
I'm not asking for any app to be able to read my health data, and I understand the security arguments for a closed system. I'm asking that I, the owner of the device and of the data, be able to run my own code on it without paying for a subscription meant for selling apps, and without reinstalling every week.
We don't own our devices anymore; we rent them. We pay full price for the hardware, but what we're allowed to do with it, even with our own medical data, is decided by the company and can change with any update.
━━━━━━━━━━
FOR DISCUSSION
• Should apps that are never distributed, built and installed by the device owner for personal use only, be exempt from the 7-day limit?
• Is it reasonable that access to your own health data in the background depends on a USD 99/year publishing program?
• If the EU can force Apple to open the platform, should the rest of the world have to wait for its own law?
r/iOSProgramming • u/tvrrp • 6d ago
I’ve been working on SEPlayer, a framework for building media players with almost all playback logic running entirely in userspace. Only decoding, video rendering, and audio playback are handled by the system.
One of the main goals is extensibility. Unlike AVPlayer, thanks to Dependency Injection SEPlayer allows you to change every part of the pipeline . And implement your own demuxer, use different renderers, or replace the ABR algorithm, much like ExoPlayer.
I’ve spent two years researching and experimenting with different playback pipelines. Initially, I followed ExoPlayer’s approach, but its high-frequency timer-based pipeline isn’t particularly power-efficient.
I think I’ve finally found a better solution: an event-driven pipeline that only does work when necessary.
The project is still in alpha, and there’s a lot left to implement.
Currently supported:
Progressive MP4, fMP4, and MPEG-TS playback
HLS
Planned:
MPEG-DASH
Additional containers and formats, including Matroska, AVI, MP3, and raw AAC streams
More stability improvements, error handling, and tests
There’s still a long way to go, but I wanted to share what I’ve been working on.
I’d be interested in hearing feedback, especially from anyone who’s worked on media playback pipelines or video players.
r/iOSProgramming • u/yccheok • 6d ago
Regarding the new retention messaging feature, does anyone know how to view the exact details of an active retention offer in App Store Connect?
Specifically, when a user attempts to cancel a subscription, I want to verify the exact offer price and duration they are being shown. Once a retention message is submitted and approved, I can no longer seem to find a breakdown of the offered retention pricing by country.
Has anyone found where this information is displayed? (Screenshot attached)
r/iOSProgramming • u/RSPJD • 6d ago
I’m seeing fresh onboardings happening on week old versions. How is this possible?
r/iOSProgramming • u/3-Chengz • 6d ago
Disclosure: this is my own app, Briskmail, a paid Mac mail client for Gmail written in AppKit. It's a Mac app, but the bugs are the kind you hit in any UIKit or AppKit app that shows HTML mail, so I thought the causes were worth sharing. No link here; this is about the bugs.
Some background. The app talks to the Gmail API and keeps an encrypted cache on the device. About ten people have been trying it this week. These are the five reports that taught me something.
What I took from it: none of these was a crash or a data bug. They were in the places where web content meets native controls, and in what I assumed was on screen.
For those who render HTML mail or other untrusted HTML in a native app: how do you test against the long tail of markup, like Outlook's? I'm collecting real samples by hand and it doesn't scale.
r/iOSProgramming • u/EnvironmentalWeb7799 • 6d ago
Im currently trying to access App Store Connect but it seems like the site is down on my end. Is this just me or anyone having the same issue?
r/iOSProgramming • u/Rich_Carpet1615 • 7d ago
Apologies if this has been asked or discussed already.
My app targets macOS and iPadOS, for the simple reason that I feel its use requires a larger screen than an iPhone. I’m still not convinced a Duo would change that, but with Apple pushing the Duo and highlighting how many apps now have Duo-specific experiences I have thought maybe it wouldn’t be so bad…on the unfolded screen.
I’m still struggling to see how my app would work on a smaller iPhone screen. Wondering if anyone else is thinking through similar thoughts at the moment? As far as I’m aware, one cannot target the Duo and not allow downloads on other iPhones right?
r/iOSProgramming • u/FullstackViking • 7d ago
Long story short, I let an app with near-zero engagement go defunct. Life got busy, and I never maintained it. Apple rightfully removed it.
However now that I've found some more spare time I wanted to revive the app. It's in status "Removed from App Store".
I was able to validate and publish a new build but it won't let me install on TestFlight to myself or other invited users. I submitted a support ticket and haven't heard anything in a week.
At the same time I submitted it for app review and it's been in status "Waiting for review" for 5 days now.
Is this normal?
r/iOSProgramming • u/cletteney • 7d ago
Due to some business reasons, we had to transfer our app to a new developer account. Our app has been live for a few years and depends heavily on the Notification Filtering entitlement. As far as I can tell, the app transfer documentation doesn’t mention that the new account will need to request entitlements like this again. So we went through with the app transfer and now have had to request that entitlement again.
We’re a startup with some big opportunities coming fast, and for now our hands are tied. We can’t release any updates to address bugs or build out new features. We’ve been waiting for 3 weeks now, and for the most part, any word we get from support is that they’ll let us know when they have an update.
I would understand a longer wait if this were a new request, but given that this app already had this permission, it’s frustrating that we can’t move forward, especially when we had no (or didn't see any) indication that transferring the app would put us in this position.
Anyone have any experience with this or any advice on how to get this pushed through?
Appreciate any help!
r/iOSProgramming • u/TheOfficialGojo • 8d ago
I released Hartbox, an iPhone app that boots Alpine Linux in a Rust RISC-V emulator. It opens into a terminal and runs quite fast, in my testing it runs average of 1000+ MIPS
I tested it on my iPhone 17e and got `apk update` working. I used an AI assistant for parts of the code, debugging, and tests.
[GitHub repo and setup instructions](https://github.com/u6420771547-hash/hartbox)
[Download Hartbox.ipa](https://github.com/u6420771547-hash/hartbox/releases/download/v1.0.0/Hartbox.ipa)
The IPA is unsigned. I installed it through Xcode. If you try it, let me know how it runs on your phone. if you like it, a star on GitHub will be appreciated
r/iOSProgramming • u/No_Supermarket_8647 • 8d ago
1 month ago. I applied to the Apple Developer Program (LLC) one month ago, and I still haven't received a response. About two weeks ago, they asked me to provide a government-issued ID, and there has been no word since then.
Why is it taking so long? I enrolled my personal account in the Apple Developer Program before, and it was approved almost immediately. (my first attempt to contact them was in about a week after applying)
r/iOSProgramming • u/beatpaq • 8d ago
I am experimenting with App Clips right now and I'm wondering if there are any other features that are really cool but not popular?
r/iOSProgramming • u/Cylicium • 8d ago
Public repos get free macOS runners (5 at a time on the Free plan). The workflow builds your app (Swift, Flutter, React Native, Expo, KMP...), boots one Simulator per persona with its own model, iOS version, Dynamic Type size, language and dark mode, and gives it to a Claude Code agent that uses the app like a new user.
gh repo create my-testers --public --template pierridotite/mobile-agent-testers --clone
cd my-testers && ./setup.sh
gh workflow run agent-testers.ymlOn LocalSend, the iPhone SE at the largest accessibility size couldn't send text at all: the dialog overflows by 149 px. Hosted runners are meant for the repo's own project, so for a closed-source app, run it in a private repo or on your own Mac.
r/iOSProgramming • u/soumyaranjanmahunt • 8d ago
r/iOSProgramming • u/roflwaffle666 • 8d ago
I’ve been submitting updates to my app under 26.5 and devs just emailed me saying I needed to push up to 27 when I pushed my newest build. When did this change?
r/iOSProgramming • u/WeeJeWel • 8d ago
Sorry, just have to rant.
I'm currently in the process of letting Apple review my app BreastFeed, which is a tracker for moms & dads when they fed their newborn.
However, Apple has rejected my app:
The app icons, screenshots, or other metadata items include content that is not appropriate for all age groups. Specifically, the app icon and screenshots.
I know Americans are scared of breasts but isn't this going to far? It almost makes me feel like breastfeeding is unnatural, lol.
Edit: I’ve changed the breast icons (app icon and in-app icons) to milk drops and Apple approved it ¯_(ツ)_/¯
If anyone is interested, here it is: https://apps.apple.com/us/app/breastfeed-baby-milk-tracker/id6829426046
r/iOSProgramming • u/iain_1986 • 8d ago
Its only taken nearly a decade but it finally works more like Android PlayStore.
Just made a new (minor) release today and was about to have to faff around having to go through 10 languages copy and pasting the previous release notes into the What's New - only to see it had actually autofilled it
r/iOSProgramming • u/rnp-infinity • 8d ago
v0.4.0 released. It adds app launch and stop, device actions (deep link, screenshot, screen recording, dark mode, location), and log filters.
I kept switching between xcrun simctl, Simulator.app and Console just to do small things: boot a device, open a deep link, read one app's log. lazymobile puts every simulator, emulator and connected phone in one terminal screen.
On a simulator you can:
- boot, shut down, erase, create and delete
- open a deep link, take a screenshot, record the screen
- switch dark and light mode, set the location, tidy the status bar for screenshots
- grant or revoke a permission, clear an app's data
- follow one app's live log, filter it, and jump between errors
On a connected iPhone it can install an app and show one app's log. The rest is simulator and Android only for now.
It is a single binary that calls the tools you already have (xcrun, adb). It works inside Neovim or any editor's terminal, and every command has --json for scripts.
brew install --cask 0xrnp/tap/lazymobile
https://github.com/0xrnp/lazymobile
Free and open source (MIT), macOS and Linux. What do you still reach for simctl for that it doesn't cover?