-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The server does not work in background #57
Comments
Do you mean the app is restarted? |
No. I mean, that while the app is running on background, the url (ip addresses 127.0.0.1:3000) does not work (Not found) |
Nobody knows how the application will not pause in background ? |
iOS doesn't allow any (including native Objective C) thread is running when the app is on background. See https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html |
But in the emulator run in background without problems, but in the device no works in background.. I do not understand . Why? |
IOS Simulator and real device do not function similarly. iOS does not support backround threads without a particular reason |
Ok, but for example. If I want the user to exchange files with the iPhone through the browser, I have to force the user to do nothing with your device, such as playing a game. |
Not exactly. Apple accepts some particular events as long as you set them as your intention. See the link and more I'd previously shared. |
@nokai Also please remember, that putting the app into the background gives you no guarantee that the system will not kill it anytime it needs to release the resources etc. This kind of tasks as yours would need to to be explicitly defined as background task as the link above says, but I don't know if this is doable with JXcore at the moment. Furthermore there are just few modes allowed for background tasks. Below is an excerpt from the link above:
The point is, that your task would not be allowed to do just anything and @obastemur just mentioned that in previous comment. |
Ok, i want "Apps that need to download and process new content regularly"... Would it be possible do this with jxcore and Cordova? Where I can find a very easy example? Thanks |
I'm working with xcode and ios. (sample)
Works again when you return from background
Why is this happening?
Thanks
The text was updated successfully, but these errors were encountered: