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?

6•redgridtactical•7h 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•6h 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•6h 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•6h 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•6h 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•6h 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.

Ask HN: AI productivity gains – do you fire devs or build better products?

87•Bleiglanz•17h ago•153 comments

What would you do if you have AI software that may be transformers alternative?

2•adinhitlore•2h ago•0 comments

Ask HN: How much are you spending on AI coding at work?

3•habosa•2h ago•3 comments

Skills are quietly becoming the unit of agent knowledge

6•latand6•17h ago•2 comments

Ask HN: How to get free/cheap Claude and AWS credits

3•jacAtSea•5h ago•3 comments

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

6•redgridtactical•7h ago•5 comments

SparkVSR: Video Super-Resolution You Can Control with Keyframes

2•steveharing1•8h ago•0 comments

Tell HN: MS365 upgrade silently to 25 licenses, tried to charge me $1,035

19•davidstarkjava•21h ago•7 comments

Anyone know how long it will take to re-start Qatar's helium plants?

8•megamike•23h ago•4 comments

Tell HN: H&R Block tax software installs a TLS backdoor

140•yifanlu•2d ago•10 comments

Spotify playing ads for paid subscribers

147•IncandescentGas•4d ago•127 comments

Ask HN: what’s your favorite line in your Claude/agents.md files?

13•khasan222•1d ago•7 comments

I got laid off and realized how broken tech hiring is

9•nirvanist•12h ago•28 comments

Anchor: Hardware-based authentication using SanDisk USB devices

4•rewant•3d ago•1 comments

Ask HN: How are you securing LLM code agents?

3•woz_•15h ago•4 comments

Structural Friction: A metric for human coordination cost

5•davidvartanian•2d ago•0 comments

Ask HN: Why isn't the NSA categorized as an APT?

5•TheOpenSourcer•1d ago•8 comments

Ask HN: What do you look for in your first 10 hires?

28•neilk17•3d ago•34 comments

Ask HN: How do you deal with people who trust LLMs?

153•basilikum•4d ago•201 comments

Ask HN: Is vibe coding a new mandatory job requirement?

37•newswangerd•5d ago•75 comments

European municipalities leak citizen data to US companies

11•sam_lowry_•3d ago•5 comments

Ask HN: Is operational memory a missing layer in AI agent architecture?

5•varunrrai•2d ago•0 comments

I built a game where you argue consumer rights against AI bots

8•dragonmann•3d ago•3 comments

Ask HN: Have you cancelled any software subscriptions because AI replaced them?

10•maxim_bg•3d ago•14 comments

TTal – CLI that turns Claude Code into a multi-agent software factory

6•neilbb•3d ago•4 comments

Ask HN: The new wave of AI agent sandboxes?

12•ATechGuy•3d ago•5 comments

Ask HN: What features does a chip require to beat Nvidia in the AI race?

6•caloricflow•2d ago•13 comments

Ask HN: How to Find a Job in the UK

9•0x3444ac53•3d ago•10 comments

Ask HN: What are the greatest discoveries in the last few years?

14•chistev•2d ago•6 comments

Ask HN: Are you using a Pivotal Tracker successor? Which one?

2•antfarm•2d ago•3 comments