Coder Social home page Coder Social logo

Unable to launch other apps about pilaunchernext HOT 6 OPEN

siskyn avatar siskyn commented on July 26, 2024
Unable to launch other apps

from pilaunchernext.

Comments (6)

siskyn avatar siskyn commented on July 26, 2024 1

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.

frootloop88 avatar frootloop88 commented on July 26, 2024

same

from pilaunchernext.

porcoddiocanebastardo avatar porcoddiocanebastardo commented on July 26, 2024

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.

ValentineShilov avatar ValentineShilov commented on July 26, 2024

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.

threethan avatar threethan commented on July 26, 2024

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.

cgapk123 avatar cgapk123 commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.