title: iPhone Push notifications via mobile safari
body: <p>Is there a way to simulate push notifications by pushing data to mobile safari? Here are 2 scenarios.</p>
  
  <ol>
  <li><p>I make a web app via phonegap and dont want to use APNS but rather make a web-socket connection and push data to the device myself. On the device end is there a "alert" function I can call to emulate a pop up when a user is not in the application?</p></li>
  <li><p>Lets throw web app out the window. Is there a way I can do this in native mobile safari? Im not talking about a plain old JS alert window that would only come up if the user was in the app, but be able to do so with it backgrounded.</p></li>
  </ol>