Skip to content

Add "This device" as a wearable for testing and data collection#206

Open
DennisMoschina wants to merge 13 commits intomainfrom
feature/host-device
Open

Add "This device" as a wearable for testing and data collection#206
DennisMoschina wants to merge 13 commits intomainfrom
feature/host-device

Conversation

@DennisMoschina
Copy link
Collaborator

No description provided.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

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'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Josua019
Copy link

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:

<key>NSMotionUsageDescription</key>
<string>This app requires access to the barometer to provide altitude information.</string>

@DennisMoschina
Copy link
Collaborator Author

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:

<key>NSMotionUsageDescription</key>
<string>This app requires access to the barometer to provide altitude information.</string>

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.

@DennisMoschina DennisMoschina marked this pull request as ready for review February 10, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants