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

I didn't discover List of devices in Android 12 and Higher versions. Is there any issue in plugin. #48

Open rameshboyee-sayukth opened 1 year ago

rameshboyee-sayukth commented 1 year ago

I didn't discover devices in Android 12 and Higher versions. Is there any issue in plugin.

zombiepirate03 commented 1 year ago

try swapping the device_info package to device_info_plus. it worked for me. Apparently device_info is no longer maintained and i think something changed between android versions that made it so device_info causes android 12+ to no longer be able to browse. If this doesnt work i would try experimenting with permissions. I am 90% sure its device_info being outdated but i can be wrong. In my testing i used a moto X4 (android 9) and a OnePlus Nord CE 3 Lite 5G(oxygen OS, android 13). I added a bunch of perms but il need to filter them out later so i would recommend getting the perms from the example and any that might be needed for android 12+ like bluetooth scan advertise and connect to start with. In my case, my issue was that my android 13 device was able to advertise, but not able to browse

HajerWael commented 1 year ago

I have the same issue and @zombiepirate03's solution doesnt resolve it .