Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.05k stars 1.14k forks source link

ARFoundation app not working on devices with ARCore installed. And Google Play is not always preinstalling ARCore when app is downloaded and installed. #173

Closed dorkbot closed 4 years ago

dorkbot commented 5 years ago

I have an app in an open test in the Google Play store. The app has ARCore set to “Required.” The app is not working, at least not in the way it should. I've seen two similar issues, both involve ARCore. A user downloads the app and gets nothing but a black screen, the first scene in the app doesn't have AR, so this is unexpected. The users will have ARCore installed on their device. When they uninstall ARCore and again open my app, the first scene loads fine, then they get a prompt to install ARCore when the AR scene loads, they install ARCore, which crashes the app. But when they relaunch the app, it works fine, the AR scene loads. The other issue is very similiar, the user has ARCore installed, they download the app, the first scene opens, then when the AR scene loads, they just get a black screen. They uninstall ARCore, open my app again, and the AR scene loads but they do not get a prompt to install ARCore, however after checking it's discovered that ARCore was installed, without permission it seems.

My understanding is that if ARCore is set to “Required” then the Google Play store installs ARCore before installing the app (Only if ARCore supports the device). But Google Play seems to not do this in some cases. And also it seems that ARCore is either breaking, or needs to be updated, an assumption based on how uninstalling ARCore fixes the issue. So is this because the app is in an open test? Or is there something wrong with my app? Or something wrong with Google Play? Or ARCore? Or ARFoundation? Or Unity?

You are welcome to test the app here -> https://play.google.com/apps/testing/org.innovativegenomics.CRISPR_3D

Thank you for any advice.

RoshanJIX commented 5 years ago

same issues with my app. AR functionality inside my app not working after publishing..Did you manage to find Why?please help

dorkbot commented 5 years ago

Try uninstalling and reinstalling ARCore. I think loading an app from Unity (side loading) doesn't trigger an ARCore update.

RoshanJIX commented 5 years ago

Okay,I'll try.Thanks. Will keep you updated

RoshanJIX commented 5 years ago

I fixed the issue by updating the whole project to unity 2019.2.3f1. it seems like a bug in 2019.1.8f1

mdurand42 commented 4 years ago

We have not heard widespread issues with Google Play Services installation failing. Please re-open if you are still seeing this.