VNAPNIC / flutter_nearby_connections

Flutter plugin support peer-to-peer connectivity and the discovery of nearby devices for Android vs IOS
https://pub.dev/packages/flutter_nearby_connections
BSD 2-Clause "Simplified" License
106 stars 68 forks source link

DeviceId of the device the app is installed on #20

Closed 7anya closed 3 years ago

7anya commented 3 years ago

How can on find the deviceID of the device the app is installed on. For example i want the device id of my own phone through the app, how may i do that?

VNAPNIC commented 3 years ago

I don't support getting my own device id, because android can't support it, you can use deviceName to find the device to connect

nearbyService.invitePeer( deviceID: device.deviceId, deviceName: device.deviceName);

7anya commented 3 years ago

Thank you for your clarification. Helps a lot :)