Detect if device supports ARKit or ARCore?

Is there a method for detecting if a device supports ARKit or ARCore?

Thanks!

In ARFoundation, you can check for availability on both iOS and Android. See this post describing how.

Also, you can use ARSupportChecker plugin to do that easily this way:

ARSupportChecker.IsSupported()

There is a problem with this method:
https://forum.unity.com/threads/arfoundation-support-device-check-on-android-does-not-work-correctly.705659/#post-6512019

Answered you there. The method with ARSession.CheckAvailability() can return false positive result. You can reproduce such behaviour on Redmi Note 5 and some other Xiaomi devices. On the other hand on the most devices this package is undeletable and preinstalled. You can see that in the description of the package and in reviews of users that cannot uninstall it here → https://play.google.com/store/apps/details?id=com.google.ar.core