title: How to configure Push Notifications on Parse Server?
body: <p>I have deployed a Parse Server on Heroku and mongoDb using a modified fork of the parse-server-example on GitHub. I have looked at the wiki here on how to send push notifications on parse server: <a href="https://github.com/ParsePlatform/parse-server/wiki/Push" rel="nofollow">https://github.com/ParsePlatform/parse-server/wiki/Push</a>
  but I am looking for a more in-depth response. My <strong>CLOUD CODE (cloud/main.js)</strong> to send a scheduled push notification (which functioned properly on the hosted version of Parse) is </p>
  
  <pre><code>    Parse.Cloud.define('sendPush', function(request, response) {
  
  
      var userQuery = new Parse.Query(Parse.User);
      userQuery.equalTo('username', request.params.targetUsername);
  
  
      var pushQuery = new Parse.Query(Parse.Installation);
      pushQuery.matchesQuery('user', userQuery);
  
  
     Parse.Push.send({
     where: pushQuery,
       data: {
          alert: 'You have a new message from ' + request.params.fromUsername + '!'
        }, 
        push_time: request.params.date
      }, {
        success: function() {
          // Push was successful
          response.success('push successful')
        },
        error: function(error) {
          // Handle error
          response.error('push failed')
        }
     });
  
      });
  </code></pre>
  
  <p>I am working strictly with iOS and I am looking to have this code function again on my Parse Server. The wiki guide says I need to configure the Parse server, which I am not sure how to do or where to do it. Any help is appreciated. Thanks</p>