iPad as a server

I’m designing for a new customer some app’s for their iPad’s.
One of the app’s has to be a kind of server of al kind of collected data.

I did many of these technics on Mac and Win and was always using the perfect Xojo ServerSocket :slight_smile:

What is the best approach on iOS?

[quote=260065:@Jaap Cammeraat]I’m designing for a new customer some app’s for their iPad’s.
One of the app’s has to be a kind of server of al kind of collected data.

I did many of these technics on Mac and Win and was always using the perfect Xojo ServerSocket :slight_smile:

What is the best approach on iOS?[/quote]

I bumped into the same requirement for my own app and filed a request long, long ago in the far away age of beta testing, when I still believed things were possible for iOS (how naive) : <https://xojo.com/issue/36856>

Since obviously nothing ever happened, I ended up using a web app to connect to. On a Lan, you can probably do the same with a Desktop machine.

Sandbox makes it hard for iOS apps to “share” common storage locations, but it seems I read it is possible (but difficult), and Apple may be really strict about approving such. I’m going to see if I can find information, but it will probably be something that cannot be done in XOJO for iOS, and may require ObjC or SWIFT.

Of course, using the “Cloud” might be a possibiltiy as well

There is an excellent article about the subject at
https://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server

But of course it is not for Xojo.

It would be amazing to create a Web App embedded in an iOS app.

So, in short:

iOS doesn’t have a ServerSocket class
iOS doesn’t have a xojo.Net.TCPSocket.Listen method

My project has to function even if there is no internet available.
My project has a running WiFi network for local traffic.

If I need to exchange data between all the iPad’s I have to create a desktop ServerSocket app who is connecting everything.

Are there possibilities for a MBS kit @Christian Schmitz ?

Untrue. XOJO for iOS may not, but Sockets ARE available in the iOS operating system

[quote=260338:@Jaap Cammeraat]i
My project has to function even if there is no internet available.
My project has a running WiFi network for local traffic.
[/quote]
Therefore you DO have an INTRANET available, programming differences would be minimal

If the updates don’t have to be “live/realtime”, you have the option of using iTunes filesharing, heck you could even resort to email… not the best thing… but it is an option

https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/NetworkingTopics/Articles/UsingSocketsandSocketStreams.html#//apple_ref/doc/uid/CH73-SW8

Are you saying Norman, that socket.Listen will be possible when I wrap call’s to Apple’s framework?

Just that Apples doc suggest that it is possible to write a server on iOS
Declares may suffice