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

Support inline replies #68

Open
nsatragno opened this issue Mar 23, 2016 · 8 comments
Open

Support inline replies #68

nsatragno opened this issue Mar 23, 2016 · 8 comments

Comments

@nsatragno
Copy link
Contributor

Android N and Windows 10 support showing a text input in a notification. This feature would allow users to quickly write a reply without launching a new browser window. The benefits are more evident in low resource devices, where the cost of doing so is non trivial.

I suggest adding a boolean requestReply attribute to NotificationAction. If it's true, the user agent should provide a way to let the user activate the action with a text response. Naturally, this means a new attribute DOMString reply is added to Notification, conveying the reply text (which may be empty) or null if no reply was requested.

What do you think?

@mnoorenberghe
Copy link

FYI: OS X and iOS also have this so compatibility with their APIs should also be taken into account.

@annevk
Copy link
Member

annevk commented Mar 24, 2016

Paging @hober and @dwsinger for input from Apple.

@mvano
Copy link
Contributor

mvano commented Mar 24, 2016

I'm still looking into this, but one thing comes to mind. As actions are only supported on persistent notifications, the nullable text reply could be more narrowly scoped by setting it on the event for onnotificationclick instead of the notification object.

@hober
Copy link

hober commented Mar 24, 2016

I'm probably missing something obvious. If a notification has been created, there's already a browser window somewhere with the page open. Do you want a way for the page to say "call this js function with the string entered in the quick reply field"?

@mvano
Copy link
Contributor

mvano commented Mar 24, 2016

@hober This is for persistent notifications, which are generated from service workers, and those may run in the background without any browser window being open.

@hober
Copy link

hober commented Mar 25, 2016

Ahh. That's not how notifications work on OS X, so I'm not sure what kind of input I can provide here then.

@anitawoodruff
Copy link

PR in progress at #132

@CodingDive
Copy link

What is the status on this? I've looked at the PR which hasn't gotten updated since last year but surprisingly found this chromium issue to be already closed and marked as fixed. Can I already be using inline replies but they will only work in chrome? If yes, where can I read more about the API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

7 participants