Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /**
  2. * @param tag Tag of the notification
  3. * @param title Title of the notification
  4. * @param body Body of the notification
  5. * @deprecated Use the W3C standard window.Notification API instead.
  6. */
  7. NotificationMessenger.prototype.notify = function(tag, title, body, flag) {
  8. if (window.Notification) {
  9. this.activeNotification = new window.Notification(title, {
  10. body: body,
  11. flag: flag,
  12. tag: tag
  13. });
  14. }
  15. }
  16.  
  17. window.plugins.statusBarNotification.notify("11", "Put your title here", "Put your message here");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement