is_ios_app_on_mac 0.0.1+2 copy "is_ios_app_on_mac: ^0.0.1+2" to clipboard
is_ios_app_on_mac: ^0.0.1+2 copied to clipboard

PlatformiOS

This plugin checks to see if your iOS app is being run on an Apple Silicon Mac.

is_ios_app_on_mac #

is_ios_app_on_mac Donate Buy me a coffee GitHub issues GitHub Repo stars

A Flutter plugin that checks to see if your Flutter iOS app is being run on an Apple Silicon Mac.

Uses Apple's isiOSAppOnMac function. From Apple's Documentation:

The value of this property is true only when the process is an iOS app running on a Mac. The value of the property is false for all other apps on the Mac, including Mac apps built using Mac Catalyst. The property is also false for processes running on platforms other than macOS.

This function only works on iOS 14 and above so the result will always return false on apps that are below iOS 14.

AppleSilconMac
iPadExample
AndroidExample

Usage #

import 'package:is_ios_app_on_mac/is_ios_app_on_mac.dart';

const isOnMac = await IsIosAppOnMac().isiOSAppOnMac()

4
likes
140
pub points
74%
popularity

Publisher

verified publisheralexrabin.com

This plugin checks to see if your iOS app is being run on an Apple Silicon Mac.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on is_ios_app_on_mac