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

Feedback about the API name "Background Sync" #76

Closed
KenjiBaheux opened this issue Apr 8, 2015 · 8 comments
Closed

Feedback about the API name "Background Sync" #76

KenjiBaheux opened this issue Apr 8, 2015 · 8 comments
Labels

Comments

@KenjiBaheux
Copy link
Collaborator

We had a Service Worker and related APIs hackathon in Tokyo last week.
Going around the tables, I explained about upcoming work including Background Sync.

The takeaway is that almost everyone was excited about what Background Sync would let them do but were puzzled by the name. They assumed that the API was specifically designed for dealing with synchronizing client-server data sources. Some folks suggested "Background Task".

Thoughts?

@annevk
Copy link
Contributor

annevk commented Apr 8, 2015

iOS calls this "Background App Refresh" (also to end users). What's the Android term?

@KenjiBaheux
Copy link
Collaborator Author

@annevk
Copy link
Contributor

annevk commented Apr 8, 2015

So "Task" is used by HTML already and "Job" is used by JavaScript (mistakenly, imo, but it's there). Maybe "Background Script"?

@jakearchibald
Copy link
Collaborator

.backgroundScript.register sounds like I'd provide a separate script to the serviceworker.

Although "task" is used by HTML, does it still kinda make sense? Isn't firing an event a task in HTML?

@jkarlin
Copy link
Collaborator

jkarlin commented Apr 8, 2015

+1 for task

@annevk
Copy link
Contributor

annevk commented Apr 12, 2015

I think "background task" is too generic (what I suggested was too). E.g. "push" is technically a "background task" too, but a lot more clear.

The one-off event is mostly about "when online", the periodic event is mostly about keeping data fresh. Background networking doesn't sound too great unfortunately, but sync mostly has those implications.

And the API is sort of designed for synchronizing client-server resources. Is there any actual problem here?

@KenjiBaheux
Copy link
Collaborator Author

With some of the use cases mentioned in #77 the synchronizing aspect is missing.

The Background Task API available to Windows Store Apps is addressing similar needs:
http://visualstudiomagazine.com/articles/2013/05/01/background-tasks-in-windows-store-apps.aspx

@jkarlin
Copy link
Collaborator

jkarlin commented Oct 8, 2015

This can be bikeshed forever. Until something drastically better comes along let's stick with sync.

@jkarlin jkarlin closed this as completed Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants