All Projects → VNAPNIC → flutter_nearby_connections

VNAPNIC / flutter_nearby_connections

Licence: BSD-2-Clause license
Flutter plugin support peer-to-peer connectivity and the discovery of nearby devices for Android vs IOS

Programming Languages

dart
5743 projects
kotlin
9241 projects
swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to flutter nearby connections

flutter-geocoding
A Geocoding plugin for Flutter
Stars: ✭ 88 (+72.55%)
Mutual labels:  flutter-plugin
pal-widgets
A collection of widgets for making amazing onboarding experience in your flutter applications
Stars: ✭ 21 (-58.82%)
Mutual labels:  flutter-plugin
flutter-crisp
Flutter plugin for Crisp Chat
Stars: ✭ 18 (-64.71%)
Mutual labels:  flutter-plugin
gen lang
gen_lang is a dart library for internationalization. Extracts messages to generate dart files required by Intl, inspired by Intl_translation and Flutter i18n
Stars: ✭ 94 (+84.31%)
Mutual labels:  flutter-plugin
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (-33.33%)
Mutual labels:  flutter-plugin
flutter vibration
Handle vibration on iOS and Android in Flutter apps
Stars: ✭ 146 (+186.27%)
Mutual labels:  flutter-plugin
flutter isolate
Launch an isolate that can use flutter plugins.
Stars: ✭ 157 (+207.84%)
Mutual labels:  flutter-plugin
flutter-nfc
Flutter Android plugin for NFC
Stars: ✭ 14 (-72.55%)
Mutual labels:  flutter-plugin
survey kit
Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)
Stars: ✭ 68 (+33.33%)
Mutual labels:  flutter-plugin
Web Vuw
A Web View for flutter
Stars: ✭ 40 (-21.57%)
Mutual labels:  flutter-plugin
flutter beacon
An hybrid iBeacon scanner and transmitter SDK for Flutter Android and iOS.
Stars: ✭ 92 (+80.39%)
Mutual labels:  flutter-plugin
flutter rtmppublisher
Publisher to rtmp using the camera plugin as a basis to do all the basic camera/record management.
Stars: ✭ 86 (+68.63%)
Mutual labels:  flutter-plugin
flutter-moum
Flutter를 좋아하는 사람들이 모여서 Flutter 관련 지식과 기술을 모음📚
Stars: ✭ 67 (+31.37%)
Mutual labels:  flutter-plugin
flutter scan
scanner qrcode in widget tree & decoder qrcode from image
Stars: ✭ 63 (+23.53%)
Mutual labels:  flutter-plugin
simple beacons flutter
A flutter plugin project to range & monitor iBeacons.
Stars: ✭ 29 (-43.14%)
Mutual labels:  flutter-plugin
navigate
A flutter plugin for byutifull navigation with advanced routing
Stars: ✭ 40 (-21.57%)
Mutual labels:  flutter-plugin
flutter mailer
A wrapper on top of MFMailComposeViewController from iOS and Mail Intent on android
Stars: ✭ 43 (-15.69%)
Mutual labels:  flutter-plugin
flutter-devicelocale
A Flutter package to read and return the set device locales
Stars: ✭ 45 (-11.76%)
Mutual labels:  flutter-plugin
appmetrica sdk
A Flutter plugin for Yandex AppMetrica SDK, a marketing platform for app install attribution, app analytics, and push campaigns.
Stars: ✭ 15 (-70.59%)
Mutual labels:  flutter-plugin
getx snippets extension
An extension to accelerate the process of developing applications with flutter, aimed at everyone using the GetX package.
Stars: ✭ 142 (+178.43%)
Mutual labels:  flutter-plugin

flutter_nearby_connections

flutter nearby connections

Plugin: https://pub.dev/packages/flutter_nearby_connections

Flutter plugin supports peer-to-peer connectivity and discovers nearby devices for Android and IOS

The flutter_nearby_connections plugin supports the discovery of services provided by nearby devices. Moreover, the flutter_nearby_connections plugin also supports communicating with those services through message-based data, streaming data, and resources (such as files). The framework uses infrastructure Wi-Fi networks, peer-to-peer Wi-Fi and Bluetooth Personal Area Networks (PAN) for the underlying transport over UDP. The project is based on

Android

Nearby Connections API (Bluetooth & hotspot) Support Strategy: Strategy.P2P_CLUSTER, Strategy.P2P_STAR, Strategy.P2P_POINT_TO_POINT

Wi-Fi P2P (only wifi hotspot no internet) Support Strategy: Strategy.Wi_Fi_P2P

IOS

Multipeer Connectivity

We use the NearbyConnections API, but Flutter methods are based on the concept of Multipeer Connectivity IOS.

Methods provided:

startAdvertisingPeer, startBrowsingForPeers, stopAdvertisingPeer

We separate the dependencies of the MCNearbyServiceAdvertiser, MCNearbyServiceBrowser and MCSession classes. All of the methods will be implemented in the NearbyService class.

Noted

  • Android doesn't support emulator only support real devices
  • On iOS 14, need to define in Info.plist
    <key>NSBonjourServices</key>
    <array>
        <string>_{YOUR_SERVICE_TYPE}._tcp</string>
    </array>
    <key>UIRequiresPersistentWiFi</key>
    <true/>
    <key>NSBluetoothAlwaysUsageDescription</key>
    <string>{YOUR_DESCRIPTION}</string>

in this case, YOUR_SERVICE_TYPE is 'mp-connection' (you can define it)

nearbyService.init(
        serviceType: 'mp-connection',
        strategy: Strategy.P2P_CLUSTER,

Test on IOS device

The example app running in IOS

Test on Android device

The example app running in Android

Visitors Count

Loading

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].