WebAPI/SimplePush: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 18: Line 18:
   // returns the list of all push registrations for this origin
   // returns the list of all push registrations for this origin
   PushRegistration[] registrations();
   PushRegistration[] registrations();
  attribute EventHandler onregistered;
  attribute EventHandler onunregistered;
};
};


Line 36: Line 33:


interface PushEvent : Event {
interface PushEvent : Event {
  // enum? one of 'update' or 'register-again'
  DOMString type;
   // this is topic string used when registering for push notifications  
   // this is topic string used when registering for push notifications  
   DOMString channelID;
   DOMString channelID;
Line 62: Line 56:
   },
   },
   "messages": [
   "messages": [
     {"push": "/view_to_launch.html"}
     {"notification": "/view_to_launch.html"}
    {"notification-register": "/view_to_launch.html"}
   ]
   ]
}
}
Confirmed users
93

edits

Navigation menu