Mobile Kit is a SDK that enables seamless communication between mobile applications and Lenses running on SPECS via Bluetooth Low Energy (BLE). This sample demonstrates how to establish a secure session, send one-way data, perform request-response exchanges, subscribe to topics, and load remote textures and meshes from a companion mobile app. Learn more about the SPECS Mobile Kit in the official documentation.
Designing Lenses for SPECS offers all-new possibilities to rethink user interaction with digital spaces and the physical world. Get started using our Design Guidelines
- Lens Studio: v5.25+
Note: Ensure Lens Studio is compatible with SPECS for your SPECS device and OS versions.
- SPECS OS Version: v7.0+
- SPECS App iOS: v1.0+
- SPECS App Android: v1.0+
To update your SPECS device and mobile app, please refer to this guide.
You can download the latest version of Lens Studio from here.
To obtain the project folder, clone the repository.
IMPORTANT: This project uses Git Large Files Support (LFS). Downloading a zip file using the green button on GitHub will not work. You must clone the project with a version of git that has LFS. You can download Git LFS here.
The project should be pre-configured to get you started without any additional steps. However, if you encounter issues in the Logger Panel, please ensure your Lens Studio environment is set up for SPECS.
Before running the sample, you will also need a companion mobile app for bonding and session management:
- iOS: Open app/iOS/SpectaclesKitSample/ in Xcode 16 and run on a physical iPhone.
- Android: Import app/Android/SpectaclesKitSample/ in Android Studio and run on a physical device.
The bonding flow must be completed once via the SPECS App before a session can be established.
MobileKitTest_TS.ts - Drives the full Mobile Kit demo: creates a BLE session with the companion app, performs one-way data send, request-response exchanges, topic subscriptions, and remote texture/mesh loading via the Internet and RemoteMedia modules.
- Open MobileKit.esproj in Lens Studio.
- Go to Project Settings and verify the Lens Name is set to
SpecsMobileKit(the sample apps look for this name and the Lens IDcom.snap.mobilekittest). - Open the Preview Panel and select the SPECS preview mode.
- Review the Logger Panel for connection status and any errors.
NOTE: This project will only work for the SPECS platform.
- Click Preview Lens in Lens Studio to install and launch the Lens on your SPECS.
- Launch the companion mobile app on your phone:
- iOS: Tap SpectaclesKit bind, grant Bluetooth access, approve the bond in the SPECS App, then tap Start Session.
- Android: Tap the + button, approve permissions and the bond in the SPECS App — the app connects automatically.
- Once connected, the Lens displays the session status, loads a remote image and mesh, and shows subscription responses from the mobile app.
- If
Reset After Delayis enabled, the session closes automatically after 10 seconds.
If you have any questions or need assistance, please don't hesitate to reach out. Our community is here to help, and you can connect with us and ask for support here. We look forward to hearing from you and are excited to assist you on your journey!
Feel free to provide improvements or suggestions or directly contributing via merge request. By sharing insights, you help everyone else build better Lenses.
Built with 👽 by the SPECS team
