a-shell icon indicating copy to clipboard operation
a-shell copied to clipboard

Keep a-shell running in the background

Open kiding opened this issue 5 years ago • 8 comments

https://github.com/ish-app/ish/issues/249 sorta kinda achieved this goal by constantly polling the location data and exposing the data at /dev/location.

I understand this is probably an instant no-go as an App Store-approved app, but I wanted to leave an issue at least for future reference.

kiding avatar Jul 07 '20 03:07 kiding

@kiding Does iSH’s hack actually work for people? In my experience, the app quits anyways, possibly because iOS wants to free up memory.

NightMachinery avatar Sep 07 '20 07:09 NightMachinery

@NightMachinary Well, iOS aggressively freeing up memory isn't new, so preventing that scenario is probably impossible as an app. I can attest at least it mostly works, as long as a background process (simulated in iSH) keeps requesting the location data from /dev/location.

kiding avatar Sep 07 '20 07:09 kiding

I think the question is not whether you can run ish in the background (it does work) but HOW LONG you want it to run. I have tested it and it does indeed run in the background but I have never needed it for more than a few minutes so I don't know how long it will continue to work.

ifuchs avatar Sep 07 '20 20:09 ifuchs

ish can run in the background (at least for awhile) but is there a way for a-shell to run in the background? The ish trick of using /dev/location will not work since /dev is not available. Is there a way?

ifuchs avatar Sep 21 '20 14:09 ifuchs

This comment might be a bit late, but in iOS 17 (and I think also in 16) you can keep it running using the live activities. The ssh client termius has done a good job with implementing it

JMcrafter26 avatar Apr 15 '24 15:04 JMcrafter26

Any update ? , this is so important

Shahidxbmc avatar Jul 23 '24 21:07 Shahidxbmc

My scenario is: Run ssh port forwarding in a-shell, then call chrome on the localhost address. Generally this works, but sending a-shell to the background will pause it.

The workaround is to use split view and run both. Not ideal, but is sufficient for me.

wuebbel avatar Jul 31 '24 11:07 wuebbel