<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.4 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/NetworkCompatibilityToken/compatibilityWith(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation25NetworkCompatibilityTokenC17compatibilityWithyAC0D0OACF"
  },
  "title" : "compatibilityWith(_:)"
}
-->

# compatibilityWith(_:)

Compares network compatibility tokens between the local device and
another device.

```
final func compatibilityWith(_ otherToken: NetworkCompatibilityToken) -> NetworkCompatibilityToken.Compatibility
```

## Parameters

`otherToken`

The token for the remote client against which the local
device checks compatibility

## Return Value

Returns
[`NetworkCompatibilityToken.Compatibility.compatible`](/documentation/RealityKit/NetworkCompatibilityToken/Compatibility/compatible) if the local
client and the remote client represented by `otherToken` can be synced.
Any other result indicates that the two devices are incompatible and you
shouldn’t proceed with the connection.

---

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)