-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android device cannot detect others by flutter_nearby_connections #56
Comments
Same issue - I didn't managed to connect 2 physical Android phones: Xiaomi MI 6 (Android 13, rooted) with Samsung Galaxy A72 (Android 13, non-root). I also didn't managed to connect Samsung A72 with iPhone 13 (iOS 17.1.2) although I am not sure if this is possible with this package? Mine settings in android were: compileSdkVersion 34, minSdkVersion 28, targetSdkVersion 34, I am on Flutter 3.13.8 and I am using flutter_nearby_connections: 1.1.2 This ticket is related to #49, #48, #39, #36, #34, #29, #25, #19 |
Thanks for your comment! I seem that you have same issue. My settings in android were: compileSdkVersion 34, minSdkVersion 21, targetSdkVersion 34, Flutter version 3.16.7 and I 'm using flutter_nearby_connections:1.1.2 By the way, if we want to connect between iPhone and Android, we have to use UDP-TCP-Flutter?(https://github.com/VNAPNIC/UDP-TCP-Flutter) As far as I can see, this is not possible with this package. |
I have created a fix for this and a pull request has been created: 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:
|
Thanks for fix the issue! I don't try it now, but I will do it. |
Thank you very much, was wondering why my app wasn't detecting other devices on andriod14, your fix worked. |
I want to connect between several devices, so I tried sample code provided by Flutter on debug mode.
As a result, I succeeded to connect between ios, but I didn't succeed between Android.Browser device couldn't detect Advertiser devices.
The Android device conditions used are as follows↓
Galaxy SC-02L (OS version: Android 10)
Google pixel 5a (OS version: Android 12)
Why don't I succeed to connect between Android? The diffence of OS version?? Please tell me the reason, and what should I do. Thank you for your help.
android/app/src/main/AndroidManifest.xml
The text was updated successfully, but these errors were encountered: