title: How to send push notification from the application using parse framework?
body: <p>I found <a href="https://parse.com/tutorials/ios-push-notifications" rel="nofollow noreferrer">a tutorial</a> to send push notifications to all devices which my app got installed. I got succeed in sending messages from the parsing.com</p>
  <p>But, I need to send the messages from the ios app itself.</p>
  <p>In the site, they mentioned a code that,</p>
  <pre><code>PFQuery *pushQuery = [PFInstallation query];
  [pushQuery whereKey:@&quot;deviceType&quot; equalTo:@&quot;ios&quot;];
  
  // Send push notification to query
  [PFPush sendPushMessageToQueryInBackground:pushQuery
                             withMessage:@&quot;Hello World!&quot;];
  </code></pre>
  <p>I can't get what the code is exactly. I spend a day.</p>
  <p>Can anyone tell, how to send push notifications from ios app?(ie, clicking a button)</p>
  <p>I have the device token of the device to which the message should be send.</p>
  <p>It will be a great help to me.</p>