title: Phonegap push notifications implementation
body: <p>I know this type of question has been made before but my problem is, there is so many different answers and let´s just say that the docs are not that good, the thing is, i want to implement push notifications on my app but i´m stuck on step 3 and 4 of <a href="http://devgirl.org/wp-content/uploads/2012/10/Push-Overview-467x500.jpeg" rel="noreferrer">this</a> image.</p>
  
  <p>I have followed <a href="http://docs.phonegap.com/develop/push-notifications/" rel="noreferrer">this</a> tutorial, but when i want to send the private token to my server, <strong>what do i have to do to distinguish ios from android?</strong>. If you look at <a href="http://devgirl.org/2013/01/24/push-notifications-plugin-support-added-to-phonegap-build/" rel="noreferrer">this</a> tutorial you will see that there is actually 2 methods to distinguish APNS and GCM(and it´s an old tutorial!), but if you go to phonegap <a href="https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md" rel="noreferrer">docs</a> or this tutorial that i have been following, the methods are not those. </p>
  
  <p>Does anyone knows a <strong>up to date tutorial</strong> that i can follow?  </p>