For other people, you probably won’t have to do as much work since this is already built into Meta’s Quest platform (https://www.theverge.com/2022/4/19/23031996/meta-quest-vr-ar...), and I’m assuming that Apple’s upcoming Reality OS will have this baked in as well.
Did Google cancel their AR framework? I thought they had a publicly released AR library on Android already.