VoIPGRID / chrome-extension

VoIPGRID Chrome Extension
MIT License
7 stars 9 forks source link

Use notifications to inform the user about the call status #8

Open cpoppema opened 10 years ago

cpoppema commented 10 years ago

Right now there is a pop-up appearing in the center of your browser telling the status of the call (including call time). If possible we'd like this to move to a notification so you can still browse on this page. The call should not end by any means, when leaving the page the call originated from is possible.

We are not sure if this is possible with the call time since you'll need to constantly update 1 notification instead of simply sending a notification with a static message.

What would be very nice is a hang up call button in this notification if Chrome supports it (I believe it does, lookin at notification examples like: http://cdn1.tnwcdn.com/wp-content/blogs.dir/1/files/2013/05/5xHEAF_Ri1UWJATLBoPXhLOctYEW0af4SatVcJCX7UwVBdsOzPM8yxPOIpc7jG5VNws2000.png)

When all information is moved to notifications, #2 is no longer an issue.

cpoppema commented 10 years ago

If you can tell us in more detail what is and what is not possible, we will try to come up with a design for these notifications.

Ivbul commented 10 years ago

Please clarify what you mean by notification, where should we put the panel? Where a hang up call button should be situated?

cpoppema commented 10 years ago

With notification I mean a desktop notification, but it should not dissappear by itself automatically because it should display whatever is in the current panel in the middle of your screen What we wish to have: 1 a hangup button should be available in this notification; 2 when a user clicks on the hangup button the call should end; 3 when a user clicks the X in the corner to close the notification the plugin should stop polling for the call status but not hangup the call; 4 the notification should stay regardless of the page status, the user should be able to use browser regularly; 5 the notification should not disappear right away but a time of 5 seconds should start after which it disappears (when the call status is ended);

However, we are unfamiliar with these notifications and don't know if all of these or only some are possible. If you can tell what the possibilities are, we can create a better example of what we'd like.

In the mean time #2 has priority over this.

Ivbul commented 10 years ago

screen1 screen2

We can use the standard HTML5 notifications: http://www.html5rocks.com/en/tutorials/notifications/quick/

The 1st example - screen 1: Here the notification is not closed automatically; it hides when we click on the body of the window (in this case the call is not ended). And then we see the notification icon (bell).

The 2nd example - screen 2: The methods cancel() and close() are used to close the notification. They fully close the window. If we click on the Close button, the window is closed and the call is ended.

Also it is possible to forbid the notification for all extensions or for the definite one. In this case we can use the old method that shows the panel with its status.

cpoppema commented 10 years ago

Please notice the warning in the top: "This article is outdated and references a deprecated API." and redirects to http://alxgbsn.co.uk/2013/02/20/notify-js-a-handy-wrapper-for-the-web-notifications-api/, is this Notify.js what you're using now? Regardless, while you could maybe use Notify.js for firefox and chrome < v28, I was more interested in the possibilities of rich notifications, currently only for Chrome (as far as I know). Also look at http://developer.chrome.com/apps/notifications.html for more information. If you look at the 5 points I listed, what can you see about the options with the documentation Google provides?

For now, however, I would just like to hear the possibilities and not for you to include this in the repository already.

Ivbul commented 10 years ago

We don’t use Notify.js now. We’ve investigated the links that you gave to us. The first link (http://alxgbsn.co.uk/2013/02/20/notify-js-a-handy-wrapper-for-the-web-notifications-api/) works only with Mozilla and doesn’t work on Chrome. The second link (http://developer.chrome.com/apps/notifications.html) is more appropriate and works the same as http://www.html5rocks.com/en/tutorials/notifications/quick/. The features are the following: 1 a hangup button should be available in this notification; 2 when a user clicks on the hangup button the call should end; 3 when a user clicks the X in the corner to close the notification the plugin should stop polling for the call status but not hangup the call; 4 the notification should stay regardless of the page status, the user should be able to use browser regularly;

The 5th item is different from what you described. The notification is not closed automatically; it hides when we click on the body of the notification (in this case the call is not ended). And then we see the notification icon (bell). Please let me know if we should use this variant.