Skip to content

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

@ekuleshov

Description

@ekuleshov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions