Repository navigation
v0.3.0
@mobilerun/react 0.3.0
Features
useDeviceStreamtakes an SDK device object. Passdevice: sdk.devices.fromId(id)from@mobilerun/sdk6.2 or later. The existing{ client, deviceId }form keeps working with older SDKs; peer range stays>=2.0.0. A fresh device object on every render does not refetch (the hook keys on device id and client). New exported types:UseDeviceStreamDeviceOptions,SdkDeviceHandle.- Task approvals.
<TaskApproval />anduseTaskApprovalshow a pending approval of a running task and send the decision through your backend, so the API key stays on the server.
Fixes
- Polling no longer stops after one failed fetch. Transient errors retry at the polling interval; 4xx responses other than 408/429 stop retrying; a successful fetch clears the error.
Docs and example
- README and example use the SDK object API. The Quick start keeps the API key on the server; the browser only receives the stream URL and token. Webhooks are verified with
verifyWebhookfrom@mobilerun/sdk(a signed body that is not JSON gets 400invalid_json, from SDK 6.2.1).
Verified against a live cloud Android device on a development environment: live stream through the example's device route and webhook handling.