From 526726162f8ddddf9469797436123704a261df87 Mon Sep 17 00:00:00 2001 From: Pascal Auf der Maur Date: Mon, 20 Jul 2026 13:11:20 +0200 Subject: [PATCH] fix(nfc): adapt backend invoke to frontend (#3419) * fix(nfc): adapt backend invoke to frontend * Revert "fix(nfc): adapt backend invoke to frontend" This reverts commit e34306e083351c51b1953c69dead931678b4a8a6. * fix: enforce nfc function return type * Update .changes/nfc.md Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com> --------- Co-authored-by: Fabian-Lars <30730186+FabianLars@users.noreply.github.com> --- .changes/nfc.md | 6 ++++++ plugins/nfc/src/lib.rs | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changes/nfc.md 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) }