Проблемы с UDP в версии AndroidAndroid

Форум для тех, кто программирует под Android
Ответить
Гость
 Проблемы с UDP в версии Android

Сообщение Гость »


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-abi
) and test it on my android device, it doesn't work.

When 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
is:

Код: Выделить всё

                         

Источник: [url]https://stackoverflow.com/questions/78076975/udp-issues-on-android-version[/url]
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»