polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
483 stars 153 forks source link

Cannot list offline recordings on Polar 360 #480

Closed vedantgurav closed 1 month ago

vedantgurav commented 2 months ago

Platform on which you observed the bug:

Device on which you observed the bug:

Describe the bug In the iOS SDK demo project, I can successfully start and stop offline recordings on the Polar 360. But when I try to list the recordings, I get operationNotSupported.

Additionally, the disk space remains unchanged on the device.

How to Reproduce

Expected behavior

Screenshots and logs

Start offline recording listing
2024-08-07 11:26:38.770: listOfflineRecordings -> subscribed
2024-08-07 11:26:38.782: listOfflineRecordings -> Event error(operationNotSupported)
Offline recording listing error: operationNotSupported
2024-08-07 11:26:38.782: listOfflineRecordings -> isDisposed
List Offline Empty Unchanged Disk Space
image image
hamletAppsfactory commented 1 month ago

Issues i could reproduce with Polar 360 device (Firmware version: 1.1.0) :

IMG_0225 IMG_0226 IMG_0228

Screenshot 2024-09-23 at 11 30 44
vedantgurav commented 1 month ago

Solved by fixing the FileSystemType function. Polar 360 was missing here. https://github.com/polarofficial/polar-ble-sdk/blob/f9c57d5148de25199544338a4a3a65125792da4a/sources/iOS/ios-communications/Sources/iOSCommunications/ble/api/model/polar/BlePolarDeviceCapabilitiesUtility.swift#L21-L39