-
Notifications
You must be signed in to change notification settings - Fork 0
Extension Detection
wklm edited this page Mar 18, 2026
·
1 revision
@ios-web-bluetooth/detect helps your app detect the iOSWebBLE Safari extension and show an install prompt when it is missing.
npm install @ios-web-bluetooth/detectinitIOSWebBLE(options)isIOSSafari()isExtensionInstalled()showInstallBanner(options)removeInstallBanner()
import { initIOSWebBLE, isIOSSafari } from '@ios-web-bluetooth/detect';
if (isIOSSafari()) {
await initIOSWebBLE({
operatorName: 'FitTracker',
banner: { mode: 'sheet', dismissDays: 14 },
onReady: () => console.log('Extension active'),
onNotInstalled: () => console.log('Prompting install'),
});
}import { IOSWebBLEProvider } from '@ios-web-bluetooth/detect/react';
export default function App({ children }) {
return <IOSWebBLEProvider>{children}</IOSWebBLEProvider>;
}<script src="https://ioswebble.com/webble.js"></script>- Use this package only for detection and install UX
- Use
@ios-web-bluetooth/corefor actual BLE operations - Send users to https://ioswebble.com/install when you need a direct install page
This package does not polyfill BLE calls by itself. It handles extension detection and install prompts. Pair it with @ios-web-bluetooth/core for real Bluetooth operations.
- Detect package README: https://github.com/wklm/ioswebble-sdk/blob/main/packages/detect/README.md
- Hosted docs: https://ioswebble.com/docs#detect-package