Peter Ism avatar image
Peter Ism asked

LWA: Handling user change on FireTV

Hi, I'm wondering if there is any chance that go a Notification/Broadcast once the user logs out on the FireTV Stick and logs in with a different account afterwards?

We are currently facing the problem that the user stays logged in because the AuthorizationManager#getToken still returns the token of the previously logged in user even though that user isn't logged in anymore on the FireTV. Obviously we would prefer to show the Login once again so that the user has the chance to trigger the "Login-with-Amazon" with the proper account.

I've realized that the System sends some kind of event once the user is logged out

Apparently we cannot declare that permission in our Manifest or listen to this event since it is restricted to System Apps from what I can tell.

So: How can we handle user changes on the FireTV Stick?

fire tvlogin with amazon
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers