markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.42k stars 117 forks source link

actually add wifi network after scan #482

Open Svalorzen opened 4 weeks ago

Svalorzen commented 4 weeks ago

Apologies if this is a dumb issue, but I can't figure out if there is a way to solve my problem.

I've always thought that when using binary eye to scan a wifi qr code I was actually saving the network, but I've just discovered that this is not actually the case when I've tried to share a network that I have added this way. It seems that since the network is only "suggested", the system doesn't actually know the password and so it cannot share it (I do not have the option to generate a qr code from it, and if I try to modify the network I get asked the password, which I do not know).

I can only find the control to make binary eye stop suggesting a network, but not one to make a network "permanent" and so make it also sharable to others. Is this possible, or alternatively, could such a feature be added? Thanks in advance for your help.

markusfisch commented 1 week ago

Sorry for not responding so long 🙈 This is a rather complex matter, unfortunately.

From Android Q on, apps can only suggest Wifi networks by using WifiManager.addNetworkSuggestions. These suggestions get stored in the context of the app only, and if you uninstall Binary Eye, the system would remove these suggestions with it, unfortunately.

But anyway, you should still be able to share the Wifi via the reproduction of the scanned QR Code that is shown with the scan result.