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

Check wifi connectivity only #984

Closed
LukasKorba opened this issue Jan 1, 2024 · 0 comments · Fixed by #985
Closed

Check wifi connectivity only #984

LukasKorba opened this issue Jan 1, 2024 · 0 comments · Fixed by #985

Comments

@LukasKorba
Copy link
Collaborator

LukasKorba commented Jan 1, 2024

The background processing request hold a flag

 request.requiresNetworkConnectivity = true

The BGTask is triggered by the system only when the iPhone is currently connected to the internet. The issue with this flag is that any connectivity will trigger the task. There is no API that can specify the type of the connectivity.

We want to trigger syncing for wifi only connectivity so the solution is to let the system to trigger the BGTask but check the connectivity in a custom solution way. Only when we confirm the wifi is present, we start the synchronizer.

@LukasKorba LukasKorba mentioned this issue Jan 2, 2024
15 tasks
@nuttycom nuttycom added this to the Zashi 1.0 milestone Jan 3, 2024
@str4d str4d modified the milestones: Zashi 1.0, Background syncing Jan 4, 2024
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

Successfully merging a pull request may close this issue.

3 participants