Hi everyone
I added a VPS location to my app with an object as a child (is a UI 3d label).
On the simulator it works as expected, when I run it and I press the ‘Found’ button the object is rendered on the scene and I can interact with it as expected.
If I go to the location and point the camera to the VPS with my actual device (android) nothing happens, no error on the console but the child element is not rendered on the screen.
I am not sure how to debug this, I double checked and all the permission are enabled (camera + location),
Are there more steps to have VPS working on device?
At code level there not much, there is a component that listen to reality event and display the button
ecs.registerComponent({
name: 'Finder',
schema: {
startButton: ecs.eid,
},
schemaDefaults: {
// Add defaults for the schema fields.
},
data: {
// Add data that cannot be configured outside of the component.
},
stateMachine: ({world, eid, schemaAttribute}) => {
function foundMe(e) {
console.log('Found ME', e.data)
ecs.Hidden.remove(world, schemaAttribute.get(eid).startButton)
}
ecs.defineState('starting').initial()
.onEnter(() => {
ecs.Hidden.set(world, schemaAttribute.get(eid).startButton, {})
world.events.addListener(world.events.globalId, 'reality.locationfound', foundMe)
})
.onExit(() => {
world.events.removeListener(world.events.globalId, 'reality.locationfound', foundMe)
})
},
})
If I run the simulator everything is working fine and I get all the info proper e.data
for the specific VPS, but on device nothing happens.
Any suggestion?