frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: How do you handle peer-to-peer discovery on iOS without a server?

3•redgridtactical•1h ago
I'm building an app that syncs between phones over Bluetooth when there's no cell service. Android has Nearby Connections API which handles discovery and transport nicely. iOS has Multipeer Connectivity but it's flaky and Apple hasn't updated it in years. CoreBluetooth works but discovery is slow and you're limited to advertising 28 bytes. Has anyone found a reliable cross-platform approach to BLE device discovery that doesn't require a central server or pre-shared identifiers?

Comments

razingeden•1h ago
I’m going to feel like a jerk for not reading the source to figure out if it’s done in firmware or software before I point to it but meshtastic is doing something on both platforms to find new lorawan nodes and populate them in your device cache and it’s open source.

It’s something that’s consistent across both platforms is why I mention it, I don’t currently have an esp32 laying around to see if it’s done in the UI on the client or on the esp32 itself- mostly because I disliked the heltec and moved to an area where nobody’s using them now. I’m stuck on this question of trying other makes and models or giving up on the lorawan thing. For the moment I’m pegged out on how far I wanted to go with it.

redgridtactical•1h ago
Good call, I've looked at Meshtastic's approach. They use CoreBluetooth on iOS with a known GATT service UUID for discovery, which is basically what I'm doing now. The main difference is they're discovering LoRa radios (which have fixed BLE addresses) rather than other phones. Phone-to-phone is trickier because iOS rotates the BLE address every ~15 minutes for privacy, so you can't really rely on address-based reconnection. You end up needing to encode enough identity into the GATT characteristics that peers can re-identify each other after an address rotation. Curious to see if anyone's found a cleaner approach for that.
razingeden•1h ago
Ah yeah. They solve that by referencing the lorawan ble MAC But you know that.

did you find this project in your travels yet? apparently some portions of it stay and remain uniquely identifiable which this team considers a bug and apples position on it for now is a wont-fix

https://github.com/furiousMAC/continuity

I like the fact that they rotate them (and WiFi addresses) out so I don’t get stalked with tailored ads in Walmart or whatever but they only went so far with it and it’s probably still feasible

redgridtactical•1h ago
Hadn't seen that repo, really interesting find. Using undocumented Continuity fields for discovery is tempting but I wouldn't want to build on something Apple could break in any iOS update. I'm doing a GATT characteristic handshake with a session-derived service UUID for re-identification after address rotations. Takes a couple extra seconds on reconnect but at least it's stable. Those Continuity protocol docs are useful regardless though, good to understand what Apple is doing under the hood.
razingeden•1h ago
fair, I wouldn’t want a business model that’s dependent on something they could take away overnight.

so that’s discovery, I don’t have any ideas about retention offhand (you already do) but you’ve had that question rattling around for awhile and it’s new to me.

The First Time I Saw a Calculator: On Modernity and Newness

https://peterhimmelman.substack.com/p/the-first-time-i-saw-a-calculator
1•myth_drannon•36s ago•0 comments

The Diminished Art of Coding

https://nolanlawson.com/2026/03/22/the-diminished-art-of-coding/
1•MindGods•51s ago•0 comments

AI DevOps Actions: 9 GitHub Actions for CI/CD in AI-Native Repos

https://github.com/ollieb89/ai-devops-actions
1•trivexiai•1m ago•0 comments

WTDW Your Innovation Fails?

https://www.brettmacfarlane.com/blog/2026/failure
1•mooreds•5m ago•0 comments

Iran war energy crisis is a renewable energy wake-up call

https://apnews.com/article/middle-east-wars-renewable-energy-asia-4b5fe0693ce5816472c905db85f7da6e
1•mooreds•6m ago•0 comments

The Tale of My Retrocomputing Infrastructure

https://plbrault.com/blog-posts/the-tale-of-my-retrocomputing-infrastructure/
1•drfreckles•6m ago•0 comments

Show HN: Kitty.cards – Create Apple Wallet cards online (no login)

https://kitty.cards/
1•xenodium•13m ago•0 comments

O2Fail – What You Need to Know About Mobile Phone Content Control (2010)

https://shkspr.mobi/blog/2011/03/o2fail-what-you-need-to-know-about-mobile-phone-content-control/
1•worldofmatthew•13m ago•0 comments

Kash Patel's Nike Shoes Weren't Customized by Nike

https://www.yellopolitics.com/p/kash-patels-garish-custom-shoes-werent
1•spacebarshift•14m ago•0 comments

Fun crafts done by AI agents – humans subscribe to read

https://crafthunt.ai/
1•forest0xia•18m ago•2 comments

FAA Ends Use of 'See and Avoid' for Helicopters Near Busy Airports

https://www.nytimes.com/2026/03/18/us/politics/faa-visual-separation-policy.html
1•bookofjoe•20m ago•1 comments

Talking with Robin Brooks

https://paulkrugman.substack.com/p/talking-with-robin-brooks
1•paulpauper•21m ago•0 comments

GitHub – DrBradStanfield/Roadmap

https://github.com/DrBradStanfield/roadmap
1•evo_9•25m ago•0 comments

Build knowledge agents without embeddings

https://vercel.com/blog/build-knowledge-agents-without-embeddings
1•ahamez•26m ago•1 comments

AI's impact on private equity – based on AI deep research

https://ai-transformation.fyi/
1•Dagulf795•26m ago•1 comments

Show HN: Playra

https://playra-app.vercel.app/
1•Allenboyy•29m ago•0 comments

ClawMem

https://github.com/yoloshii/ClawMem
1•flippyhead•30m ago•0 comments

Alpha release: HunterPrey, a persistent SSH PvP world

https://hunterprey.com/
1•kicksent•30m ago•0 comments

Show HN: Association rule mining on 21.6M poker hands

https://pattern.poker
1•et9797•33m ago•0 comments

The Environment Will Be Saved If We Just Avoid Doing Icky Things (2024)

https://branchfree.org/2024/11/25/the-environment-will-be-saved-if-we-just-avoid-doing-icky-things/
2•usdogu•33m ago•0 comments

When the sun sets, batteries rise: 24/7 solar in California

https://pv-magazine-usa.com/2026/02/17/when-the-sun-sets-batteries-rise-24-7-solar-in-california/
1•toomuchtodo•35m ago•0 comments

Show HN: Three deployable open source platforms from a solo builder

1•BrainDAnderson•36m ago•0 comments

New OllamaMQ Version v0.2.5

https://github.com/Chleba/ollamaMQ
1•chleba•38m ago•0 comments

MoaV: Why Anti-Censorship Needs Infrastructure, Not Just Tools

https://medium.com/@sbetamc/moav-16-protocols-one-server-why-anti-censorship-needs-infrastructure...
1•shayanbahal•39m ago•0 comments

Why Tech Bros Are Now Obsessed with Taste

https://www.newyorker.com/culture/infinite-scroll/why-tech-bros-are-now-obsessed-with-taste
3•rmason•40m ago•1 comments

Microbenchmarking Chipsets for Giggles

https://chipsandcheese.com/p/microbenchmarking-chipsets-for-giggles
2•zdw•49m ago•0 comments

AI Is Garbage and a Bubble

https://www.richardcarrier.info/archives/38652
20•mastabadtomm•49m ago•10 comments

Show HN: Inner Warden, self-defending server with eBPF and AI

https://www.innerwarden.com/
2•maiconburn•51m ago•0 comments

Describe an app in one sentence, get it built and shipped within minutes

https://bubbling.dev/
1•georgesmith9914•52m ago•2 comments

GrapheneOS will remain usable by anyone without requiring personal information

https://grapheneos.social/@GrapheneOS/116261301913660830
4•nothrowaways•53m ago•0 comments