CatimaLoyalty / Android

Catima, a Loyalty Card & Ticket Manager for Android
https://catima.app
GNU General Public License v3.0
833 stars 149 forks source link

Shortcut in control panel #1872

Closed plegrand1 closed 5 months ago

plegrand1 commented 5 months ago

Hello, I'm using a "Redmi Note 11 Pro 5G" with Android 13. Since the Xiaomi update from "MIUI 14" to "Xiaomi HyperOS 1", a "Catima" shortcut has appeared in the control panel without me knowing why or how to remove it. image

What's more, when I click on this shortcut, I get this message: image

Any idea how to solve this problem? Thanks Pascal

TheLastProject commented 5 months ago

Ah, I see Xiaomi HyperOS 1 has put smart home control front-and-center! :)

Okay, so, this is a bit of a weird story, but long story short: your phone is suggesting using Catima to control your "smart home" due to how we worked around certain Google limitations. Allow me to elaborate:

When Google introduced the "Power menu" in Android 11 (a menu that shows all your cards and smart home devices when holding the power button), they limited it so that only Google Pay (formerly Google Wallet, now Google Wallet) could register cards to show there. However, one user really wanted their Catima cards easily reachable through the power menu for even faster check-outs at stores so discussed implementing this somehow in #146. Given Google blocks any app except Google Wallet from registering cards in the cards menu it was decided to instead make Catima tell Android it could control your smart home. Obviously, this isn't true, but it was the only way to put something in the "Power menu".

Now, it seems like Xiaomi put the smart home part of the "power menu" right there in your control panel in HyperOS. So, you could add some of your favourite Catima cards in there if you wanted for easier access.

I hope that answers your question as to why that shortcut is there.

Now for your question of how to remove it: I sadly can't confirm this as I don't own any Xiaomi device, but I did a quick web search for you and according to this post you should be able to replace/remove the Catima shortcut there by going to Settings -> Notifications & status bar and scrolling down to "Smart device controls" under "Control center" and choosing "None" or the name of a supported app you'd rather have appear there.

I'll move this to discussions as it's not really a bug, but expected behaviour given Google's limitations and more of a support request :)