Skip to content

iOS: Incorrect Storage Space Values Reported #12

Description

@manishpatel6314

Current Behavior

Currently, the iOS implementation of the storage_space plugin shows incorrect storage values:

  1. Device Settings shows 128GB total storage
  2. Plugin reports approximately 104GB total storage
  3. Similar discrepancy in free space values

Example values from testing:

  • Device total storage (Settings): 128GB
  • Plugin reported storage: 104GB
  • Actual value received: 112418697216 bytes

Root Cause

The discrepancy occurs because:

  1. Current implementation uses FileManager with NSHomeDirectory():
let attributes = try FileManager.default.attributesOfFileSystem(forPath: NSHomeDirectory())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions