I'm trying to get my application to automatically unlink itself from the server when the user uninstalls it from their Roku.
The Roku documentation recommends sending a token to the client app on activation which the Roku can use for subsequent operations (like streaming media) on the server. The idea is that if the user uninstalls the app, the token will be lost, effectively decoupling the client from the server.
This approach seems somehow messy, though, seeing as how numerous uninstallations will cause the server to have a lot of useless tokens lying around.
Is there another approach to unlinking the application when the user uninstalls it? Does Brightscript perhaps have a callback that fires when the user uninstalls the app, so I can manually call an endpoint on my server to deactivate it in another way?