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

When two devices connected and send/receive text, both device showing same name instead of showing different name according to devices identity in Android . #26

Open mbhuiyanst opened 2 years ago

mbhuiyanst commented 2 years ago

Is this same case for all who already explore with this example code for this pluggin

abhay-s-rawat commented 2 years ago

yes its same for example plugin also. I am also facing this issue in 2022.

mbhuiyanst commented 2 years ago

I already resolved this issue.

Sent from Yahoo Mail on Android

On Fri, Apr 29, 2022 at 12:40, @.***> wrote:

yes its same for example plugin also. I am also facing this issue in 2022. Its been a year for this ?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

abhay-s-rawat commented 2 years ago

Actually the problem was here: In browse mode on click of connect button, I was passing the device name of what I was getting instead of mine. Sorry for the confusion.


nearbyService.invitePeer(
          deviceID: device.deviceId,
          deviceName:device.deviceName, //We have to pass our device name here deviceName: 'my device name'
        );
natgross commented 1 year ago

I was passing the device name of what I was getting instead of mine

Ok. So how do I get my device? (I can discover other devices, but not mine?)