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

Run in background service #34

Open
Alguek opened this issue Apr 1, 2020 · 5 comments
Open

Run in background service #34

Alguek opened this issue Apr 1, 2020 · 5 comments

Comments

@Alguek
Copy link

Alguek commented Apr 1, 2020

Can I use this pub in background task?
Because when I close my App, I lose my connection with the server.

@firatcetiner
Copy link

I guess we can. I'm will prepare a demo about this in couple of days and will definitely leave a comment when I'm finished.

@Alguek
Copy link
Author

Alguek commented Apr 14, 2020

thanks man, I appreciate

@pcorderoe
Copy link

Is this done? I have the same issue...

@lumogox
Copy link

lumogox commented May 6, 2020

+1

@firatcetiner
Copy link

firatcetiner commented May 9, 2020

I have tried connecting with a SignalR server in background, it works fine. I used this plugin to register a task in the background, it simply opens a connection when app is the background with a time period, in my example the period is 1 minute.

I could not prepare a decent demo but here is a gist.

The main problem when working on a background process is that we are bound to the rules that Operating System enforce. For example, in this case on Android we can run in the background in evry 1 minute but this can not be done on iOS devices, since the minimum bakcground fetch interval is 15 minutes.

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

4 participants