I want to control my Wiz light bulbs without using the closed source package. There is a connector for it available (https://pub.dev/packages/wiz).
The application is based on the example provided by the package (https://pub.dev/packages/wiz/example) and it runs smoothly on my development environment (linux). When I use my android device as debug environment (connected with USB-cable), it works as well!
But, when I build apk-files (with
Код: Выделить всё
flutter build apk --split-per-abiWhen starting the application, you need to push a "sync" button. It starts a udp-broadcast on the local network to try to find the light bulbs IP-adress. On my linux laptop, that takes a second or two and it shows spinning arrows to show it is doing somehting. When lights are found, buttons get available to adjust them (intensity, temperature, ...).
On the android device, when I push the sync button, it doesn't find any device. I barely see spinning arrows.
The first 6 lines of
Код: Выделить всё
AndroidManifest.xmlКод: Выделить всё
Источник: [url]https://stackoverflow.com/questions/78076975/udp-issues-on-android-version[/url]
Мобильная версия