<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "watchOS: 7.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NIError/unsupportedPlatform",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "s:SC11NIErrorCodeLeV19unsupportedPlatformSoAAVvpZ"
  },
  "title" : "unsupportedPlatform"
}
-->

# unsupportedPlatform

An error code that indicates that the framework doesn’t support the device platform.

```
static var unsupportedPlatform: NIError.Code { get }
```

## Discussion

Before running an interaction session, call [`isSupported`](/documentation/NearbyInteraction/NISession/isSupported) to ensure that Nearby Interaction supports the device’s platform.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)