Skip to content
pubscout

is_ios_app_on_mac

0.1.1+1, released 10 months ago by rabinapps.com

Detects if your iOS app is running on an Apple Silicon Mac or visionOS.

$ flutter pub add is_ios_app_on_mac
Source repository

What it does

A Flutter plugin that leverages native Apple APIs to check whether an iOS app is running on an Apple Silicon Mac or visionOS.

AI-written summary of version 0.1.1+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to adjust UI or features for iOS apps running on macOS or visionOS.
  • You want to detect Apple Silicon Mac deployment for iOS targets.

Skip it when

  • You are building a standard macOS desktop app using Mac Catalyst.
  • You only need general device information and can use a broader device info package instead.

Strengths

  • Provides specific detection for iOS apps running on non-iOS Apple platforms.
  • Simple static methods for easy usage.

Weaknesses

  • Limited to specific Apple platform use cases.
  • Requires minimum iOS platform versions.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires iOS 14.0 or later for isiOSAppOnMac and iOS 26.1 or later for isiOSAppOnVision.

import 'package:is_ios_app_on_mac/is_ios_app_on_mac.dart';

final isOnMac = await IsIosAppOnMac.isiOSAppOnMac();
final isOnVisionOS = await IsIosAppOnMac.isiOSAppOnVision();

Alternatives

Packages that do the same job and could replace is_ios_app_on_mac.

  • device_info_plus

    Provides comprehensive hardware and OS information across multiple platforms rather than just specific iOS-on-Mac checks.

Works with

Packages commonly used together with is_ios_app_on_mac: ones it builds on, ones built on it, and its own family.