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

Plugin stops working on Android above version 12 #49

Open HajerWael opened 1 year ago

HajerWael commented 1 year ago

It works well on real devices android version below 12 ,

trials as below: 1) Tried to add these extra permission in the manifest as mentioned here [issue#29].

2) tried to change device_info package with device_info_plus as mentioned here [issue#48].

still didn't work , any advices please,

Thanks in advanced.

joshuamoreno1 commented 11 months ago

I have the same issue, not working in android

juanxcueva commented 6 months ago

did you find any solution?

champeauxr commented 1 month ago

I have created a fix for this and a pull request has been created: https://github.com/VNAPNIC/flutter_nearby_connections/pull/62

The fix was to upgrade to the latest version of the Google Nearby Connections library and to add new permissions that are required by Android 12 and above.

I'm not sure how actively this package is being maintained, so until this PR is merged, you can find a working version of it at my fork: https://github.com/champeauxr/flutter_nearby_connections

Reference this in your flutter app with the following:

dependencies:
  flutter_nearby_connections:
    git:
      url: https://github.com/champeauxr/flutter_nearby_connections
      ref: master