Great tutorial, thanks! Had an issue though when deploying the Unity LocalSharedDemo to android (Galaxy S8). The app starts and seems to connect to the anchors web app ok, but there is no camera feed so it is not possible to place any anchors. Any ideas?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Hi, sometimes this can happen when all the references aren't properly aligned in Unity. Can you try in Unity choosing "Assets -> Re-import All" from the top menu. Then try running the app again?
Thanks for the super quick response Ali :) I will try that and let you know how it goes.
Just tried re-importing all assets and deploying again. Sadly, I still have the same issue. It did work with the basic (i.e. not shared and stored with the web app) version which is done using the sample built and deployed in Android studio. I think I should clean up my environment and start again from scratch.
@mattmgroom Any updates? Were you able to resolve this issue?
I have the same problem in iPhone, It works when I directly build with swift through Xcode. But when I build from unity to try out LocalSharedDemo the camera won't activate on the iPhone. Any more tips?
I managed to solve this issue on Android. Make sure that the minimum API level is 26 (Android 8.0). Also, I had better luck using IL2CPP than mono. I also activated ARM64 support, but I'm not sure if that had any impact.
One possible solution is also to reinstall the Android NDK.
@mattmgroom Closing this issue since we haven't heard back from you. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
I am having this same issue with an s9
Most helpful comment
Hi, sometimes this can happen when all the references aren't properly aligned in Unity. Can you try in Unity choosing "Assets -> Re-import All" from the top menu. Then try running the app again?