sendSingleTab

abstract fun sendSingleTab(targetDeviceId: String, title: String, url: String, isPrivate: Boolean = false)

Use device commands to send a single tab to another device.

💾 This method alters the persisted account state.

If a device on the account has registered the DeviceCapability::SendTab capability, this method can be used to send it a tab.

Notes

  • If the given device id does not existing or is not capable of receiving tabs, this method will throw an FxaError::Other error.

  • (Yeah...sorry. This should be changed to do something better.)

  • It is not currently possible to send a full `SendTabPayload` to another device, but that's purely an API limitation that should go away in future.

  • Device commands functionality is only available to applications that have been granted the https://identity.mozilla.com/apps/oldsync scope.