UDP/TCP with iOS

I’ve been using a UDP and TCP plugin without issue to connect to a device (these plugins go back 8 years).
They’ve been working fine on my iPhone 12 with the latest iOS version - version 18.
One of my app users now has an iPhone 15 with the same iOS version, but his UDP/TCP fails to work.
I’ve been looking for any differences and ways to fix it, but haven’t come across anything yet.

Has anyone had a similar issue?
Are there any recent UDP/TCP plugins we can use with NSB? The user wants to get the connection with the device working asap.

Thanks

What plugin(s) are you currently using?

1 Like

I’m currently using these plugins

Thanks

It appears the UDP plugin has been forked by someone and is being maintained here: GitHub - herdwatch-apps/cordova-plugin-chrome-apps-sockets-udp (as beta)

The TCP plugin appears to be have been forked here: GitHub - mzielezny/cordova-plugin-chrome-apps-sockets-tcp

I’m not sure if either of these will work better. Are you able to get a debug log from an affected device?

Thanks.
How do i call these plugins in config.xml as they have the same name as the old ones (eg.
cordova-plugin-chrome-apps-sockets-udp)

After i get these going, i will be able to check from an affected device. They are very keen to get it working again.

Cheers

You would need to reference the github repos or publish them to NPM yourself.

For referencing the github repos,

is that like what is done in the config.xml file

<gap:plugin name=“cordova-plugin-chrome-apps-sockets-udp” source=“npm” />

Thanks

You can see an example here of how to reference a github plugin: Config.xml API - Apache Cordova

<plugin name="cordova-plugin-device" spec="https://github.com/apache/cordova-plugin-device.git#1.0.0" />

If i copy your example into my project

  <plugin name="cordova-plugin-device" spec="https://github.com/apache/cordova-plugin-device.git#1.0.0" />

i get the following message

Is the doc outdated?

Thanks

To use a plugin that’s not on npm with VoltBuilder and Enterprise Plan is required. I’m happy to help you with this if you contact support@voltbuilder.com. If this is the only enterprise feature you need it may be more economical to publish this plugin to NPM yourself or to have us do it for you.

From the issues we’re having, it seems like these two plugins will work
https://github.com/herdwatch-apps/cordova-plugin-chrome-apps-sockets-udp
https://github.com/herdwatch-apps/cordova-plugin-chrome-apps-sockets-tcp

If you could get them working for us to use, that would be much appreciated. The end users really want this part working again and this will definitely be the quickest way.

Thanks

We’re happy to publish these plugins to NPM - there is a nominal cost associated. Please contact support@voltbuilder.com and we can work out the details.