The error is thrown while I am trying to send a broadcast. This is how my code basically looks like:
function sendBroadcast(data) {
chrome.sockets.udp.create(function (createInfo) {
udpSocketId = createInfo.socketId;
chrome.sockets.udp.setBroadcast(udpSocketId, false, function (result) {
if (result < 0) {
console.log("setBroadcast failed");
}
});
chrome.sockets.udp.bind(udpSocketId, '0.0.0.0', udpPORT, function (result) {
chrome.sockets.udp.send(udpSocketId, data, '255.255.255.255', udpPORT, function (result) {
if (result < 0) {
console.log("sendBroadcast failed");
}
});
});
});
}
As I said, for the other android systems this is working perfectly fine.
I checked the AndroidManifest.xml and the INTERNET permission param is set. Furthermore, I checked all permission in the android apps settings. All permissions are set on true.
Meanwhile, I started a listener, which receives other broadcasts. This confuses me, because it shows that the permission is set. Also, I am sure that no broadcasts are send, because my server doesn't receive any.
I am using this plugin with several android apps. Just for my Nexus 5x with Android 7 it isn't working. I get the following error:
The error is thrown while I am trying to send a broadcast. This is how my code basically looks like:
As I said, for the other android systems this is working perfectly fine. I checked the
AndroidManifest.xml
and theINTERNET
permission param is set. Furthermore, I checked all permission in the android apps settings. All permissions are set on true. Meanwhile, I started a listener, which receives other broadcasts. This confuses me, because it shows that the permission is set. Also, I am sure that no broadcasts are send, because my server doesn't receive any.While debugging I found this:
Maybe this part contains some information for you guys.
I am not sure where the problem is coming from.