ARCore is compatible with Play Instant Apps, an Android feature that enables apps and games to launch on devices running Android 5.0 (API level 21) or higher without having to first be installed. By providing an instant experience, you can improve your app or game's discovery, which helps drive more active users or create lower friction experiences.
Modified runtime checks
Currently, Play Instant apps require some consideration when it comes to performing runtime checks, specifically:
Currently, there is a known issue when calling
ArCoreApk.requestInstall()
on devices that do not have Google Play Services for AR installed. On these devices, callingArCoreApk.requestInstall()
will throw an uncatchable and unrecoverable exception. As a temporary workaround:- Use
ArCoreApk.checkAvailability()
and continue the AR experience only ifAvailability.SUPPORTED_INSTALLED
is returned - When any other value is returned, do not call
ArCoreApk.requestInstall()
- Use
Do not redirect users the Play Store in order to update or install Google Play Services for AR. Doing so will result in an install loop on ARCore supported devices that require additional device profile data to be downloaded by
ArCoreApk.requestInstall()
.
Next steps
- Follow the Android Developer's guide on how to create an instant-enabled app bundle.