BabylonNative - Is it possible to restart an Android activity?

I’ve opened another issue for the cube disappearing

I can repro with just a breakpoint and waiting a little. No need switching to different activities.

Took me a while to figure out what was happening. As usual, it’s pretty stupid.

Running experience.js happens each time the activity view is ready. The second time, it re-creates everything and breaks XR. Simple fix is to not load this script until the engine is disposed or re-initialized. This must be done on the user side/activity side.

1 Like

Partial fix is merged into master.

@Eric_Beets Do you have a list of devices that still crash with the fix? I’ll try to find at least one to repro.