diff --git a/.changes/nfc.md b/.changes/nfc.md new file mode 100644 index 000000000..6eb7676e1 --- /dev/null +++ b/.changes/nfc.md @@ -0,0 +1,6 @@ +--- +nfc: patch +nfc-js: patch +--- + +Expect a `NFCTag` as input and return a `ScanResponse` in the `scan` function. \ No newline at end of file diff --git a/plugins/nfc/src/lib.rs b/plugins/nfc/src/lib.rs index d8708c1d6..33a47a96a 100644 --- a/plugins/nfc/src/lib.rs +++ b/plugins/nfc/src/lib.rs @@ -47,6 +47,7 @@ impl Nfc { pub fn scan(&self, payload: ScanRequest) -> crate::Result { self.0 .run_mobile_plugin("scan", payload) + .map(|v| ScanResponse { tag: v }) .map_err(Into::into) }