androidtv-remote icon indicating copy to clipboard operation
androidtv-remote copied to clipboard

How to save the auth token to keep connected?

Open hainguyenspdn opened this issue 1 year ago • 1 comments

How to save the auth token to keep connected, because after just several minutes it requires us to pair again, and we need to put the code again. I saw some apps get connected without having to put the code again, but don't know how they can do that.

hainguyenspdn avatar Jun 17 '24 11:06 hainguyenspdn

I simply used: `import AppStorage from 'appstoragejs'; var store = new AppStorage('cert.json');

...

let options = { pairing_port : 6467, remote_port : 6466, name : 'androidtv-remote', cert: store.cert }

... androidRemote.on('ready', async () => { store.cert = androidRemote.getCertificate(); `

iclems avatar Mar 21 '25 14:03 iclems