Home › Forums › Programming › VR Mode on Cordova Apps
- This topic has 5 replies, 3 voices, and was last updated 8 months, 1 week ago by Thomas Fabini.
-
AuthorPosts
-
2024-03-08 at 10:35 am #71409Thomas FabiniCustomer
Is it basically possible to start VR mode on a Cordova App for Quest 2?
I got the App running in windowed mode on the Quest 2 but the “Enter VR” Button doesn’t actually work.Edit: Selecting the “ENTER VR” Button on the Cordova App on Quest 2 leads to this output in the debug log:
[INFO:CONSOLE(1)] “Uncaught TypeError: Cannot read properties of undefined (reading ‘requestSession’)”, source: https://localhost/v3d.js (1)Is WebXR generally a no-go with Cordova?
Thanks,
Thomas- This topic was modified 8 months, 2 weeks ago by Thomas Fabini.
2024-03-08 at 4:42 pm #71418kdvParticipantA Cordova app is just a local mini-server running you v3d app in a cromium-based browser. VR mode requires HTTPS. So the answer is No.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-03-09 at 12:15 am #71440Thomas FabiniCustomerAs far as I understand, Cordova serves over https since version 10. So your answer is no.
Far as I read it’s much closer to the fact that WebXR api isn’t supported, some plugins developed, abandoned…
This feature is far too important to cast it off with a much to simple answer.
I’d like to hear the devs opinion on this.2024-03-09 at 1:31 am #71444kdvParticipantYour debug log have already shown the answer Actually only the Meta Browser works properly with WebXR apps…
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2024-03-12 at 6:22 pm #71539Alexander KovelenovStaff2024-03-12 at 8:01 pm #71541Thomas FabiniCustomerHi Alexander,
thank you very much for your reply and for looking into this.
Sure thing, 4.6 first, no rush . It’s not as urgent as it is important in perspective – being able to build webxr apk’s for the oculus headsets or other platforms. I consider it a huge advantage having offline apps available to publish or sideload beside the online apps.I was looking into PWAs lately (for which you added increased support in 4.6) these seem to be well supported for apk building. There are examples with three.js scenes build into apk and running in VR on the Quest 2. Even Meta has guides for building apk’s for the Quest from PWAs.
One thing i must admit, the concept of PWAs is quite new to me, i can’t really wrap my head around about the online / offline aspect of things… does an apk still need to maintain the sync to the https hosting it was build from or is it completely offline and independent?
The process of building android apps with Cordova proved to be more difficult than the process involved building from PWAs. If they can work offline i don’t really care for the wrapper but the final result.
Good luck with the 4.6 release!
-
AuthorPosts
- You must be logged in to reply to this topic.