How to get current selected user?
What do you need help with?
I'd like to be able to count the total playing time for certain apps per Apple TV user. I can get the play state, and the app, so I can count total play time per app but I do not know how to get the current selected user. Is that something that is possible to do?
I'm not sure it's possible to see the current user. There's an API to change user, but I haven't seen anything for detecting current user. I'll keep it in mind and post an update here if I find any references.
Thanks a lot!
I didn't find a command to get the current user when implementing the #1914, as Shortcuts doesn't have such a feature. The device does send a new system info payload in a _systemInfoUpdate message right after an account switch, but I didn't see anything matching the user name or id in the system info.
That's really bizarre, I'd expect some indication of a user is or the likes. Very much unexpected, but thanks for the update.