Comments (6)
See here for details on this bug: https://communityforums.atmeta.com/t5/Get-Help/PTC-56-break-third-party-launchers-bug/td-p/1066959
As a side note, Lightning launcher does work and seems to be feature rich. https://github.com/threethan/LightningLauncher
from pilaunchernext.
same
from pilaunchernext.
Same problem with same device, quest normal launcher work normally and Dreamgrid, Pilauncher, Lightlauncher and Picozen have this problem. QuestAppLauncher don't have this problem, but grafically isn't good like the others.
from pilaunchernext.
See here for details on this bug: https://communityforums.atmeta.com/t5/Get-Help/PTC-56-break-third-party-launchers-bug/td-p/1066959
Now fixed in my PiLauncherNext fork:
https://github.com/ValentineShilov/PiLauncherNG
By using the app launch method similar to LightningLauncher
VRPlatform.java
from pilaunchernext.
Developer of LightningLauncher here!
The issue is that, as of about v56, the Quest will aggressively try to open new activities in the same window/task regardless of intent flags. Opening a VR activity in a 2D task will not work; that's what's causing the issues mentioned here.
This can be worked around by closing the task with activity.finish(), waiting for the closing animation to complete, and then launching the new intent once the task and it's window are fully removed.
from pilaunchernext.
Developer of LightningLauncher here!
The issue is that, as of about v56, the Quest will aggressively try to open new activities in the same window/task regardless of intent flags. Opening a VR activity in a 2D task will not work; that's what's causing the issues mentioned here.
This can be worked around by closing the task with activity.finish(), waiting for the closing animation to complete, and then launching the new intent once the task and it's window are fully removed.
Hi, how can I use lua code to implement this function?
This is the delayed start code I wrote, but it has no effect and cannot start the Quest game.
function launchApp11(pkgName)
local intent = PackageManager.getLaunchIntentForPackage(pkgName)
if isMobile then
if intent then
intent.putExtra("uri", "vrshell://launch/")
activity.startActivity(intent)
else
toast("Cannot start the application")
end
else
local questIntent = Intent()
questIntent:setAction("com.oculus.vrshell.MainActivity")
questIntent:setPackage(pkgName)
if questIntent:resolveActivity(PackageManager) then
-- Close the current task
activity.finish()
-- Wait for the closing animation to complete
Timer.schedule(function()
-- Launch the new intent once the task and window are fully removed
activity.startActivity(questIntent)
end, 1000)
elseif intent then
-- Close the current task
activity.finish()
-- Wait for the closing animation to complete
Timer.schedule(function()
-- Launch the new intent once the task and window are fully removed
activity.startActivity(intent)
end, 1000)
else
os.execute("am start -n " .. pkgName .. "/com.unity3d.player.UnityPlayerActivity")
end
end
end
-- Call this function elsewhere
launchApp(com.beatgames.beatsaber)
from pilaunchernext.
Related Issues (15)
- Add back explore and oculus updater buttons HOT 4
- Quest v51 Events not working HOT 42
- Add option to backup settings HOT 3
- Launcher settings don't fit on screen in pico3 HOT 2
- piLauncherNext can cause bootloop on Quest 2 HOT 2
- Adjust style to be more in line with pico 4 / quest 2 theme
- Wrong number of columns on dpi different than pico 4's.
- Custom background image can be weirdly cropped
- Add option to favorite apps
- Add dashboard-like toolbar when on pico os 4
- How install PiLauncherNext HOT 2
- Drag and Drop does not work
- How to jump start the game in lua language
- Vr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pilaunchernext.