# nfc-scheme-open-plugin **Repository Path**: yaoxs/nfc-scheme-open-plugin ## Basic Information - **Project Name**: nfc-scheme-open-plugin - **Description**: flutter 通过 nfc 唤醒打开app带参数 - **Primary Language**: Dart - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-06-20 - **Last Updated**: 2024-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # nfc_scheme_open_plugin 插件 本插件是通过 iOS、Android 的 NFC 功能唤起打开 App,NFC芯片写入自定义scheme+host+参数的方式唤起打开App 例如: custom_scheme://custom_host?param=value¶m2=value2 ## iOS 平台 配置 打开 Info.plist 文件,添加 NSNearbyInteractionUsageDescription 字段,并填写描述信息。 注意:添加的 scheme 与 写入 NFC 芯片的scheme 一致 ![img.png](img.png) CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName 你的scheme名称描述 CFBundleURLSchemes 你的scheme ## android 平台 配置 1、打开app->build.gradle文件,添加以下内容: manifestPlaceholders = [ NFCSCHEMEOPEN_APPKEY : "你的scheme", ] 2、打开app->src->main->AndroidManifest.xml文件,添加以下内容: 注意:nfc 唤起的方式按需修改;