◉RORK LABJP
●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens●SUBDOMAIN — Rork can now connect your web app to a subdomain only, leaving your root domain and www untouched (12/1)●UPDATES — expo-updates 58.0.23 fixes Android release builds embedding a stale runtime version●FLASH END — Intro pricing for Gemini Flash models ends 12/31, 29 days from now. Time to recheck AI feature costs●HMR — Some report the dev server picking up another server's bundle and then exiting●FIRST VIEW — Map the first screen for a normal launch, a notification, and a link, and back navigation stops surprising you●CARBON — Gemini 4 Carbon and Argon are now at standard rates: $4.00 input, $20.00 output per 1M tokens
Articles/App Dev
◇ App Dev/2026-06-30Intermediate

Building a Native Bluetooth Pairing Sheet with AccessorySetupKit

iOS 18's AccessorySetupKit lets you pair a single, specific device through a system sheet without the broad Bluetooth permission prompt. Assuming the native Swift that Rork Max generates, here is the path from declaration to picker to connection, with working code.

AccessorySetupKitBluetoothiOS 184Rork Max236CoreBluetooth

✦ Premium Article

Trying to connect a peripheral from my own app, the broad "App Name would like to use Bluetooth" dialog would pop up right at launch — and for a while I buried the connect feature deep in a settings screen just to avoid it. As an indie developer running utility apps on the App Store for years, I know a wide permission request in the first few seconds cools the whole experience down.

iOS 18's AccessorySetupKit changes that premise. Instead of asking for access to all of Bluetooth, your app lets the user pick just the target device inside a system-drawn sheet. Only the chosen device is authorized, and the broad permission dialog never appears. Assuming the native Swift Rork Max generates, we will walk from declaration to picker to connection. (This feature requires a native implementation; plain React Native cannot do it.)

Why you avoid asking for "everything"

Classic CoreBluetooth asks for Bluetooth permission the moment you start scanning — from the user's view, a broad "can this app see nearby devices?" grant. AccessorySetupKit inverts this: it narrows the unit of permission down to this one device.

The user picks the nearby target inside a system sheet. Your app receives the identifier of the chosen device and can connect to that device only. You never ask for a broad scan permission, so the first experience stays intact — which matters most when, like an indie developer, you are building trust from scratch.

The required declarations (Info.plist)

First declare "what kind of device you handle" in Info.plist. Miss this and the picker is silently empty.

<key>NSAccessorySetupKitSupports</key>
<array>
  <string>Bluetooth</string>
</array>
<key>NSAccessorySetupBluetoothServices</key>
<array>
  <!-- List every service UUID your device advertises -->
  <string>0000FE2C-0000-1000-8000-00805F9B34FB</string>
</array>

Even in a Rork Max project, add these two keys to the native Info.plist. List every service UUID the target advertises under NSAccessorySetupBluetoothServices; devices whose UUID is missing here never appear in the sheet.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦A system picker that surfaces only your specific device, built with ASAccessorySession and ASDiscoveryDescriptor (working Swift)
✦How to avoid the broad Bluetooth permission dialog and still connect via CoreBluetooth without a prompt afterward
✦Info.plist NSAccessorySetupKitSupports / service-UUID declarations and how to handle added / renamed / removed events
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

◇ App Dev2026-11-24
Why Only the First Page of Your Carousel Is Blank at Launch, and How to Make FlatList Start on the Right Page
My wallpaper app opened on an empty first page. Swiping showed page two just fine, and swiping back left page one empty again. The pager had been told where to start before it knew its own size. Here is the Android fix and the Expo FlatList pattern that closes the same gap.
◇ App Dev2026-11-16
I Set cameraPermission to false for a Photo Picker, and the QR Scanner Lost Its Camera Too
In expo-image-picker, cameraPermission: false deletes NSCameraUsageDescription from Info.plist on iOS and blocks CAMERA for every package on Android. Here is what happens when you also use expo-camera, and a working script that checks permissions before you submit.
◇ App Dev2026-11-12
For the Day a Crash You Fixed Refuses to Go Away: Give Every Fix a Flag That Says It Is Active
A fix that worked in debug was silently disabled in release by code shrinking. Record whether each fix is active as a crash-report key and a log line, and confirm it on release day in an Expo Android app.