Fate-Grand-Automata / FGA

Auto-battle app for F/GO Android
https://fate-grand-automata.github.io
MIT License
1.51k stars 273 forks source link

Offer Quicksettings Tile for FGA to start/stop the app easily #1554

Open Mythrix opened 1 year ago

Mythrix commented 1 year ago

Preparation

Describe the feature

Is it possible to add shortcuts to the FGA app to start and stop the service without actually opening the app? I mean these kinds of shortcuts that usually show up as a popup in supported Android launchers: https://developer.android.com/develop/ui/views/launch/shortcuts

With that feature added, it should be possible to:

reconman commented 1 year ago

Doesn't seem like you noticed. You can expand the notification for stopping the service, but not for starting.

IMG_20230305_230300.jpg

I'll look into this topic.

Mythrix commented 1 year ago

Doesn't seem like you noticed. You can expand the notification for stopping the service, but not for starting.

IMG_20230305_230300.jpg

I'll look into this topic.

Ah right, I did notice (and use) that feature before now that you mention it! That is a great addition and honestly mostly solves half of the issue yeah.

I forgot about it when I was writing this post since I was focused on testing the Tasker integration at that time.

reconman commented 1 year ago

Another user on Discord suggested to implement https://developer.android.com/develop/ui/views/quicksettings-tiles

Every Android device comes with default ones like WiFi, Record, Bluetooth, ... and app developers can add their own.

I can't implement shortcuts since they're designed to open specific windows in the app but you don't want FGA to be opened.

Mythrix commented 1 year ago

Ah, that is a great suggestion, it does sound like it's a better solution than shortcuts then yeah. Thanks for the update!