Hi all,
It’s been a while since I’ve been on here as I’ve been off in hardware land for a few months. I’m now starting to make some changes to our software solution and could really do with a UDP socket for iOS. I understand there are limitations of not turning on the radio, not working in the background etc, but UDP is the only way for us to go for our robot systems.
Anyone have any suggestions or a quote for some paid work?
I think for many reasons, Christian would prefer the same scheme as what he does for Desktop. I am sure the moment plugins are available for iOS, he will release a whole collection.
In the meantime, we have to live with declares. And this depends on the benevolent efforts of a few volunteers. Sockets can be a problem, though, because especially under iOS, they are asynchronous, and the call back mechanism involved is very difficult to implement.
@James Mullins : If you want mobile and UDP, maybe you should check into Windows tablets. These are basically complete PCs inside a tablet. There, you can use in Xojo EasyUDPSocket.
is the lack of UDP a OS level issue or Xojo level issue? The reason I ask is the project we’re set to work on early next year, requires UDP… I just presumed it would be there.
Its possible in iOS but it requires async code which currently doesn’t work with Xojo iOS without unsafe code/“hacks”. There are plenty of examples of how to do this in Obj-C and Swift.
Well, if there are a few of use who need UDP on iOS, let’s pay Christian together for a good wrapper! Waiting for the Xojo team is useless because the have to much things to do that are more important!
Can you comment on this @Christian Schmitz ?
If you want mobile and UDP, maybe you should check into alternative development environments which DO offer complete exposure to the iOS infrastructure… Swift comes to mind.
Hey folks, Any progress on a solution? I’ve just started writing my first iOS app on Xojo, and need to send UDP packets.
My current solution is to use a 3rd party app called “UDP Remote” (Alcorn McBride Inc), and set up buttons in that, but it would be better if I could write my own app for my own product.
Apple literally says
[i]In iOS, POSIX networking is discouraged because it does not activate the cellular radio or on-demand VPN. Thus, as a general rule, you should separate the networking code from any common data processing functionality and rewrite the networking code using higher-level APIs.]/i]
If you look at how Apple does things nowadays; basically I think their recommendation is to have a central server online, wherby your applications connect to it and then route the messages back to machines that are on a ‘local’ network.