Changes

Jump to: navigation, search

Firefox OS/Stingray/SmartScreen/

1,457 bytes added, 03:36, 18 December 2014
Smart System: add interactive notification section.
According to UX/VD, we will change the behavior of window manager, including the landing app support, animations, launching position, etc. (THE DETAILED CHANGES IS NOT DECIDED, YET.)
 
=== Interactive Notification ===
 
We have [https://developer.mozilla.org/en/docs/Web/API/notification Web Notification] in Firefox OS. That is a notification with only one button, called click or open. According to UX/VD, we need an extra notification which support custom buttons, 0~2 buttons. This is '''Interactive Notification'''.
 
Interactive Notification handles all Web Notifications from all apps/webs. If an app wants to use custom buttons feature, it should be certified app because Interactive Notification only supports certified app. Apps can connect to "interactivenotifications" to get port. For showing a normal notification, please use the following message to do it:
 
this.iacPort.postMessage({
'type': 'notification',
'message': {
'title': 'notification title text',
'text': 'this is a notification',
'icon': 'http://whatever-icon.internet.net/icon.png'
'buttons': buttons
}
});
 
* type: notification or alert-notification. If we want to show the alert notification, we should use alert-notification in this field.
* message: the main message body.
** title: the title of this notification (optional).
** text: the body of this notification.
** icon: the icon shown at this notification (optional). If apps don't specify this field, we will show a default icon.
** buttons: custom buttons (optional). If apps doesn't specify this field, there is no button at this notification..
== Decks ==
Confirm
209
edits

Navigation menu