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

[Request]: [device_info_plus] provide info if iOS app running on MacOS #3374

Open
ekuleshov opened this issue Dec 1, 2024 · 0 comments
Open
Labels
enhancement New feature or request triage

Comments

@ekuleshov
Copy link

Plugin

device_info_plus

Use case

The iOS apps published in the Apple App Store can be also available on Apple Silicon Macs.

Because some functionality may not work the same as on iOS (e.g. sharing intents, screen sizes, etc), it is useful to have a way to detect when iOS app is running on the Apple Silicon Mac.

Proposal

The device_info_plus is already using the NSProcessInfo and it would be great to pull the iOSAppOnMac value from there (iOS 13+).

I wasn't been able to find information on how to identify Mac model and MacOS version when iOSAppOnMac is true. Not sure if there is a way.

https://github.com/fluttercommunity/plus_plugins/blob/main/packages/device_info_plus/device_info_plus/ios/device_info_plus/Sources/device_info_plus/FPPDeviceInfoPlusPlugin.m#L24-L32

@ekuleshov ekuleshov added enhancement New feature or request triage labels Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

1 participant