Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getFreePhysicalMemory() on iOS throws exception #5

Open
bardram opened this issue Jun 26, 2023 · 2 comments
Open

getFreePhysicalMemory() on iOS throws exception #5

bardram opened this issue Jun 26, 2023 · 2 comments

Comments

@bardram
Copy link

bardram commented Jun 26, 2023

I get a

UnsupportedError (Unsupported operation: Unsupported operating system.)

when calling SysInfo.getFreePhysicalMemory(); on iOS.

Does this plugin not support iOS?

@bsutton
Copy link
Collaborator

bsutton commented Jun 30, 2023

ios has limited support.

If you are interested in raising a PR it would be a great inclusion.

Looks like using FFI to call the methods discussed here would be the way to go:

https://stackoverflow.com/questions/5012886/determining-the-available-amount-of-ram-on-an-ios-device

src/platform/memory.dart is where the call would need to be wired in.

@escamoteur
Copy link

actually none of the memory functions seem to work on ios. I think a note in the docs would be helpful

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

No branches or pull requests

3 participants