搜尋套件、儲存庫與 APP 分類

套件詳情v0.0.3

flutter_mdns_plugin

Flutter mDNS 插件

AndroidiOS
近 30 天下載
58
喜歡數
10
Pub 分數
120

安裝套件

flutter pub add flutter_mdns_plugin

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 插件,可為發現本機網路裝置與服務啟用 mDNS(多播 DNS)功能。它允許應用程式使用標準的 mDNS 協定在本機網路上廣播與解析服務記錄,進而於家庭自動化或物聯網應用等環境中實現無縫裝置通訊。此插件支援 Android 與 iOS 平台,提供一致的服務發現與解析介面。非常適合需要在不需手動設定的情況下,尋找同一網路中的印表機、智慧裝置或其他服務之應用。

適用情境

  • 發現本地網路設備
  • 自動化物聯網裝置配對
  • 啟用零設定網路
  • 支援印表機發現
  • 促進本地服務通訊

主要特色

  • 跨平台 mDNS 支援
  • 服務瀏覽和解析
  • 服務的廣播和廣告
  • 簡單的整合API
  • 即時服務更新

適合對象

  • 物聯網應用開發者
  • 本地網路服務發現程式
  • 智能家居應用
  • 印表機連接工具
  • 需要零設定網路的應用程式

使用建議

  • 需要本地網絡訪問
  • 可能需要 Android/iOS 權限
  • 僅限本地子網發現
  • 性能取決於網路穩定性
  • 不支援非本機 mDNS 查詢

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_mdns_plugin

A simple plugin for discovering mdns services in Flutter on Android and iOS. The example project is set to discover Chromecasts only, but you can set any mdns service by changing the discovery_service string in device_scanner.dart.

iOS installation Make sure you add the Foundation framework to your iOS project in xcode.

Android installation No installation required. Just make sure the permission android.permission.INTERNET is added in your AndroidManifest.xml, but that should be automatically set when creating a new Flutter project.

Most of the code for Android came from this repository: https://github.com/platinumjam/flutter_mdns

Most of the code for iOS came from this resource: https://www.eventbrite.com/engineering/bonjour-gatekeeper-how-to-implement-bonjour-service-in-an-ios-or-android-app/

所屬分類

原始碼儲存庫

使用此套件的專案