Skip to content
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

Does it run in Background? #110

Closed
Jaedson33 opened this issue Jan 12, 2017 · 5 comments
Closed

Does it run in Background? #110

Jaedson33 opened this issue Jan 12, 2017 · 5 comments

Comments

@Jaedson33
Copy link

How can I put the server to run in background?

@Jark
Copy link
Collaborator

Jark commented Jan 12, 2017

The answer to this question is highly dependent on what device you are running the server on.

For Windows 10 IOT on the Raspberry PI you can utilise a background task.

For regular Windows 10 I think the window needs to stay active for it to keep on running, if the screen is locked the app is put it into sleep mode (see: #55).

Hope this helps.

@Jaedson33
Copy link
Author

Well, I'm developing for Windows Mobile. So, can I run the server in background?

@Jark
Copy link
Collaborator

Jark commented Jan 12, 2017

Last time I looked at doing that (about a year ago) that wasn't possible, since you're only allowed to run very limited tasks in the background that are triggered by something. Also you wouldn't want to run much in the background on a phone anyway since the battery would drain pretty fast with that + other apps running at the same time.

But if you do find a way to do it, please let us know and we can add it to the FAQ.

@tomkuijsten
Copy link
Owner

As far as I know, there is no way to always run a background task on mobile. You can set triggers from which background tasks are run (timer, OS events etc), but you will only have a limited amount of time while running the background task and it can be killed by the OS. There is enough MSDN documentation on this matter, I suggest to close the issue.

@Jark
Copy link
Collaborator

Jark commented Jan 16, 2017

Agreed, closing.

@Jark Jark closed this as completed Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants