November 2022 deprecated camera methods removal for ARCore SDK for Unity

In November 2022, Google Play Services for AR will remove deprecated methods related to NDK camera images and metadata.

Apps using these methods in affected versions of the ARCore SDK might start to behave differently or crash when users update Google Play Services for AR.

Affected apps

Beginning in November 2022, your app may stop working or crash when users update to the latest version of Google Play Services for AR if:

  1. Your app was compiled with an affected SDK
  2. Your app uses any of the following affected APIs:
If your app was compiled with
ARCore SDK version…
And uses affected APIs… Breaking behavior starting in November 2022
1.22.0 or lower FrameApi.AcquireImageBytes() Returns a CameraImageBytes struct with IsAvailable set to false.
1.19.0 or lower CameraMetadata.TryGetValues() Returns false to indicate that metadata could not be retrieved. The list in outMetadataList will be emptied.

Fix affected apps

Affected apps may see breakage in November 2022. To mitigate this, update to the latest ARCore SDK for Unity. At a minimum you must update to ARCore SDK for Unity version 1.23.0.

If updating to version 1.23.0 is not possible or impractical, copy the following changes made in version 1.23.0 to the affected APIs:

Timeline

Period Events
November 2020
(ARCore SDK version 1.20.0)
Deprecate native APIs.
Update implementation to use alternate native APIs.
November 2021 Announce future breaking change due to pending removal of implementation of affected APIs from Google Play Services for AR in November 2022.
November 2022 Remove implementation of affected APIs from Google Play Services for AR.
Introduce breaking change for apps using ARCore versions prior to 1.23.0.