Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: is it possible to show summary stats in the 4-tile home window? #76

Open
DoubleYouEl opened this issue Jan 29, 2023 · 5 comments
Labels
api limitation Not possible at the moment because of limitations in the API.

Comments

@DoubleYouEl
Copy link
Contributor

It would be nice to see summary stats (not too frequently updated) in the 4-tile home window (see attached picture). I’m not aware if the app is capable of writing data to this home tile.
C19E5C67-4404-4574-BFFF-B856459C2980

@Ixam97
Copy link
Owner

Ixam97 commented Jan 29, 2023

After the battery temperature thats the single most wanted feature 🤣
Sadly there is no documentation on how this is archived. Maybe I'll try to play with media controls some more in the future.

@Ixam97 Ixam97 added the api limitation Not possible at the moment because of limitations in the API. label Feb 12, 2023
@jjtt
Copy link

jjtt commented Apr 29, 2024

Maybe I'll try to play with media controls some more in the future.

@Ixam97 Do you have a branch with your previous trials? I've also been frustrated by the lack of documentation and was thinking of trying things with media controls and MediaSession

If someone manages to dig up an apk of the bluetooth app or the radio app or something, I'm willing to spend a few days staring at decompiled code to try to figure out how they are doing it.

@Ixam97
Copy link
Owner

Ixam97 commented Apr 29, 2024

@jjtt I have tried it with media sessions in the past, but without anny success. That does not mean it does not work tough, since that was quite a while back at the beginning of this endeavour. So I just might have done it wrong. Also, mixing media functions with a non-media app might clash with Googles guidelines and hinder a public release.

For now I have put it back as a possible feature without a high priority. I also have mantioned this while talking to my contacts at Polestar. I didn't get clear answer on how and if it is possible for third party apps, but what they said sounded very much like its prittey much a first-party thing. But maybe I can get more information frm them in the future.

@spike3312
Copy link

Don't know if it will be helpful but Audiowagon media player can post text and pictures to the main screen tile in the lower right, although I suspect this is what you were refering to as media sessions, anyway it is open source at the following address:
https://github.com/MoleMan1024/audiowagon/

@Ixam97
Copy link
Owner

Ixam97 commented Jul 21, 2024

@spike3312
I am aware of how media apps do it. It would probably be possible to mimic a media app. Though I beleive there would be side effects that mess with media playback in the system.

Essentially, the app would have to present itself as a media app to the system, providing a media service containing stuff like Title, Author, Playlist, Cover Art etc. as well as the specified actions for the buttons. Those could be defined in such a way that it shows consumption data. But the system will think it is a media app. I have not tried it, because it is quite a bit of work to implement this media service. But I guess whenever CSV would be in focus, you would loose media playback, because its media service is being selcted as the media source. Likewise, CSV would have to be in focus at least once to populate it's widget, making it neccessary to open CSV, close it, and start your prefered media again.

The widgets are a Polestar-Specific thing anyways. I have no idea, how different OEMs systems would react to this kind of workaround.

If I am really bored at some point, I might give it a try. But I don't think this would be a good solution for the long run.

@Ixam97 Ixam97 pinned this issue Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api limitation Not possible at the moment because of limitations in the API.
Projects
None yet
Development

No branches or pull requests

4 participants