question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Research] Generate Oculus Store compatible APKs

See original GitHub issue

Initial request

https://twitter.com/ThePra9/status/1455899334365618181

Current plan

  1. Check if APK generated by Oculus CLI uses TWA (Trusted Web Activity): 1.1. Generate APK using Oculus CLI:
./ovr-platform-util create-pwa
  -o output.apk
  --android-sdk /opt/android_sdk
  https://example.com/manifest.webmanifest

Or to use local manifest file:

--manifest-content-file manifest.webmanifest
  https://example.com/
  1. Check if Oculus supports TWA (Trusted Web Activity): 2.1. Generate APK using Bubblewrap (PWABuilder), try to publish it to Oculus Store via Oculus CLI or web interface (see https://developer.oculus.com/resources/publish-reference-platform-command-line-utility/#upload-quest) and make some changes to APK source code to fix errors/warnings (see https://developer.oculus.com/resources/publish-mobile-manifest/#specs). 2.2. Compare APK generated by Oculus CLI with APK generated by Bubblewrap (AndroidManifest.xml, etc.). 2.3. Check APK with fixes published to Oculus Store on real Oculus device.

  2. Create a pull request for Bubblewrap.

  3. Create a pull request for PWABuilder.

  4. Write docs. E.g. document new vendor-specific proprietary web app manifest members such as:

"ovr_scope_extensions": [
  {"pattern": "*.example.com"}
]

and

"ovr_multi_tab_enabled" : true

Notes

This should be an option to not affect APKs for other app stores.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
FluorescentHallucinogencommented, Apr 4, 2022

I’ve also checked TWA on Quest 2. I’ve sideloaded APK via ADB and opened it via “Unknown Sources” section. And it just opened in Oculus Browser just like regular website (not in standalone mode).

I’ve also sideloaded Google Chrome APK to Quest 2. 😃 If Chrome is installed, then TWA open in it in standalone mode (instead of Oculus Browser).

2reactions
FluorescentHallucinogencommented, Apr 4, 2022

Good news! I finally own Quest 2. 😊

ICYMI, preview version of PWABuilder (https://preview.pwabuilder.com) offers packaging PWA for Oculus Store. 😉

@tomayac cc.

It uses ovr-platform-util under the hood. Here’s the repo: https://github.com/pwa-builder/pwabuilder-oculus.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Quest App Lab Nears 1,440 Apps, More Than Tripling Main ...
There's now 1,457 apps available for Quest via App Lab, according to submissions ... If you flood the Oculus Store with hundreds of...
Read more >
How To create an Oculus Quest app and submit it to App Lab
How to download and install apps that are on the App Lab Store? · Go to your browser · Find the store page...
Read more >
Oculus App Development: How to Create Your Own VR App
Find out how to develop apps for different types of Oculus VR headsets, how to choose a specific headset model, and streamline the...
Read more >
PWAs on Oculus Quest 2 - web.dev
APK files generated by Oculus Platform Utility are only compatible with Meta Quest devices and cannot be run on regular Android devices. Also ......
Read more >
App Lab - Complete Guide to Publishing your VR Game
In this detailed Step-by-Step guide, you will see how easy it is to publish and monetize your VR Game or App in App...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found