3 ms·
For some definition of “server”, yes. https://www.raywenderlich.com/5817-background-modes-tutorial-getting-started https://www.raywenderlich.com/5817-background
by Someone 7y ago
For some definition of “server”, yes. https://www.raywenderlich.com/5817-background-modes-tutorial-getting-started https://www.raywenderlich.com/5817-background-modes-tutorial...:
”Your app is only allowed to keep running in the background in very specific cases. For example, these include playing audio, getting location updates or fetching the latest content from a server.
If your task does not fall into these categories, backgrounding may not be for you. You may even find yourself with an App Store rejection if you try to cheat the system by using background modes outside the realm of their purposes, so consider yourself warned!”
If you read that, your ‘server’ either will only run for a finite time determined by the OS (in practice 3 minutes), or only run at highly granular times determined by the OS (”the system uses usage patterns to determine when to best fire off a background fetch. For example, if your user opens the app at 9 AM each morning, it’s likely that a background fetch will occur sometime before that time.”)
I think a X11 server that tracks updates for those three minutes of inactive time, and has a window manager that requests window updates where needed when the app becomes active could work, though.
(Disclaimer: these restrictions get relaxed over time on iOS. I may have missed some recent improvements)
- scarface74 7y agoBut that still isn’t a reason to need a a jailbroken iOS device. There is no technical limitation on playing background music to keep the session open. It would require a Mac and XCode. You don’t have to pay for a developer account to install on your own device.
- Someone 7y agoNo, you don’t, but AFAIK, you’ll have to reinstall your app every week. https://codewithchris.com/deploy-your-app-on-an-iphone https://codewithchris.com/deploy-your-app-on-an-iphone: ”Note: Without enrolling in the Apple Developer Program, your app will only last for 7 days on your device. After that, you’ll have to re-deploy it to your device via Xcode. If you’re enrolled in the Apple Developer Program, you won’t have this inconvenience.” That’s “less than ideal”.
- scarface74 7y agoSo even in that case, it seems like he could offer the option of keeping the session running in the background using audio. If you have a jailbroken device, you can turn off the audio. Since it is open source - that means if you own a Mac, you can install it yourself. If you don’t want the hassle of revalidating the software every seven days, and want to play with other open source software, pay the developer fee. I have no plans on becoming an iOS developer professionally, but heck if I owned a Mac I would get a developers license just to play around with developing for iOS and to use third party open source software. I would love to experiment with Xamarin and other cross platform mobile tech.
- tinus_hn 7y agoFortunately background apps are still not allowed or every app and his brother would find a reason to require it. This kind of functionality would require an external server but then you may as well use VNC.
- rs23296008n1 7y agoFrom what I can tell most "things that need persistent connections", including vnc or ssh, are not so persistent on ios.