There was an error while loading. Please reload this page.
Translucent adds a Javascript bridge to communicate with the native app.
The following are available through existing web apis:
To access other apis, send messages through the window.widget object:
widget.postMessage({})
To request battery level and state, use: await widget.postMessage({"action":"battery"})
await widget.postMessage({"action":"battery"})
Which will respond with a json status: {level: "95", state: "0"}
{level: "95", state: "0"}