Skip to content

A flutter plugin to discover mdns services in Android and iOS

License

Notifications You must be signed in to change notification settings

snaeji/flutter_mdns_plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Will be better documented in the near future.

About

A flutter plugin to discover mdns services in Android and iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 40.1%
  • Objective-C 31.9%
  • Dart 20.1%
  • Ruby 7.9%