You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.
Hi,
I am trying to send a UDP packet from my Android device. My code looks as follows:
chrome.sockets.udp.create({},function(createInfo){constsocketId=createInfo.socketId;constarrayBuffer=newArrayBuffer(2);arrayBuffer[0]=0x01;arrayBuffer[1]=0xff;console.log('socketId: '+createInfo.socketId);chrome.sockets.udp.send(socketId,arrayBuffer,'127.0.0.1',1337,function(sendInfo){console.log('sent '+sendInfo.bytesSent);// this log never happens});});
Why isn't it sending anything?
socketId is 0
Do I need to set any Android permissions? In AndroidManifest.xml I have <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
I am using
cordova version 8.1.2
ionic version 3.9.2
npm version 6.4.1
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to send a UDP packet from my Android device. My code looks as follows:
Why isn't it sending anything?
AndroidManifest.xml
I have<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
I am using
The text was updated successfully, but these errors were encountered: