Add "This device" as a wearable for testing and data collection#206
Add "This device" as a wearable for testing and data collection#206DennisMoschina wants to merge 13 commits intomainfrom
Conversation
… the sensors of the device the app is running on
|
Visit the preview URL for this PR (updated for commit 6a75875): https://open-earable-web--pr206-feature-host-device-4k99rgga.web.app (expires Tue, 10 Mar 2026 19:37:09 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c7397c11177c71d8d81172cea9365829823fb41c |
| .read<SensorRecorderProvider>() | ||
| .addWearable(mockWearable); | ||
| }, | ||
| child: PlatformText('Simulate Device'), |
There was a problem hiding this comment.
This should also be renamed to e.g. add phone as sensor
I can't change it anymore as my pr was completed and this one was created
There was a problem hiding this comment.
We decided to handle the device in a similar manner to all other devices and therefore removed this button in favour of displaying the device in the discovered device list.
|
This might need to be done for IOS, i did not get to testing IOS on my branch On iOS you must also include a key called NSMotionUsageDescription in your app's Info.plist file. This key provides a message that tells the user why the app is requesting access to the device’s motion data. The plugin itself needs access to motion data to get barometer data. Example Info.plist entry: |
… update ThisDeviceWearable to utilize device information
…ceWearable to initialize sensors asynchronously and improve sensor availability checks
…onfigurations could not be changed
… the list of discovered devices
…eady connected devices from the list of discovered devices
I have added it but am currently unable to install it on my iPhone. I will test it once I have resolved the installation issue. |
No description provided.