XR RuntimeError when changing disableWorldTracking in PWA mode

when changing the disableWorldTracking flag from true to false at runtime and while running as a PWA, the app experiences the following RuntimeError:

▼ [RuntimeError] XR caught an error; stopping. TypeError: undefined is not an Object. (evaluating ‘"bindVertexArray"in g’)
at onException xrextras.js
at forEach [native code]
at Y xr-simd-26.0.6.150.js
at (anonymous) xr-simd-26.0.6.150.js
at e xr-simd-26.0.6.150.js

This error only happens when running the app as PWA on iOS. Nonetheless, the app does not experience the RuntimeError when running it in a web browser. I only tested this with iOS mobile browser.

This has been observed with 8th Wall XR Version: 26.0.6.150s

Repro:

  • Run the project in 8th Wall
  • Add the app to the homescreen
  • Run the app from the homescreen
  • notice the “disableWorldTracking = true” text on top.
  • tap the swap icon bottom right
  • App crashes with the “Oops, something went wrong” message

Expected behavior:

  • upon tapping the swap icon, the app switches XrController with WorldTracking turned on and the cube is anchored to world space