Closed haitham506 closed 1 year ago
I am not able to reproduce this, and I'm also not really sure I understand the issue. Could you perhaps post some screenshots or a screen recording?
If you have an App that Auto switch to PiP when you go to home screen or switch to another app (Like Twitch App) you can reproduce it.
Here is a screen recording for it
I see. I don't think I have any control over this. This is likely a behavior defined either by the Android system itself or by the PiP app. Basically, whenever you trigger a shortcut (no matter how), it will very briefly open the HTTP Shortcuts app and close it again immediately. This means that Android or another app might decide to put the currently active window into PiP mode (if it supports it).
I can see a potential workaround that I could try implementing, but it would only work for very simple shortcuts, i.e., they couldn't use any of these features:
Would that be the case for your shortcut(s) that you want to trigger through the Quick Settings Tile?
Nice, my shortcuts are just a (GET Request) to a URL. Will this workaround work?
Thank you for your quick response :)
I hope it will. I'll have to experiment with this a bit. Can't make any promises when and if I'll be able to add this.
I have implemented a potential fix for this issue in version 2.31.0, which is now available on the beta channel. @haitham506 If you want to give it a try, you can join the beta program.
I just updated to the beta version and tested it, the same behavior as before :( but it is faster now
edit:
I retested again today after changing some settings and It Works.
Thank you :smile:
Glad to hear it works now. Yes, the rules for this are very restrictive, your shortcut has to be super simple and the conditions must be "perfect" (e.g., no battery saver or data saver on) for it to work.
If you do need some kind of visual feedback that the shortcut was triggered, you can change the response type to "Toast Popup", and then grant the app permission to display Notifications (which you'll have to do via the system settings, the app itself currently has no UI for this).
If you do need some kind of visual feedback that the shortcut was triggered, you can change the response type to "Toast Popup", and then grant the app permission to display Notifications (which you'll have to do via the system settings, the app itself currently has no UI for this).
I just did that, even better now 👍
Thank you so much 😄
Hello, I really like the UI in the 3.0 version 👍 ,but this is not working correctly, it doesn't work in the Background anymore. It also shows in the Recent Apps Menu after executing.
Could you elaborate what you mean by "this"? I'm struggling to reproduce an issue. I found one bug related to the quick settings tile, but it would only happen if the shortcut was configured to ask for confirmation before running. Is that perhaps the case for your shortcut?
If you have an App that Auto switch to PiP when you go to home screen or switch to another app (Like Twitch App) you can reproduce it.
Here is a screen recording for it
HTTP-Shortcuts.-.PiP.mp4
The same issue here is back in 3.0 and 3.0.1, also now even just Clicking the Quick Settings Tile it self before choosing a shortcut will behave the as the Video attached before + HTTP-Shortcuts will show up in the Recent Apps Menu if I didn't select a shortcut.
There is no ask for confirmation or anything it is just a GET Request shortcut it works fine on 2.31
Here is another screen recording showing the 2 issues:
https://github.com/Waboodoo/HTTP-Shortcuts/assets/66400184/4f779c03-94b6-4e96-9ce5-427f2c33fe27
I hope it is clear 👍
@haitham506 Does the issue still exist in version 3.1.0? I had to do a bit of a hacky workaround, to get this to work. As a result, the picker dialog for selecting the shortcut to run might not be nicely styled, but it should work.
@haitham506 Does the issue still exist in version 3.1.0? I had to do a bit of a hacky workaround, to get this to work. As a result, the picker dialog for selecting the shortcut to run might not be nicely styled, but it should work.
It uses the old design but it is now working fine 👍. Thank you for fixing it 🌹
Hi,
Executing a shortcut from the (Quick Settings Tile) Triggers PiP (Picture in Picture) in the Opened App.
Is it possible to add an option to not Trigger PiP on other Apps when exceuting a shotcut?