Skip to content

Parse Push to iOS hanging in parse-server 2.5.3  #88

@dplewis

Description

@dplewis

In reference to parse-community/parse-server#4015

Parse.Cloud.define('sendPushToUsers', (req, resp) => {
  const pushQuery = new Parse.Query(Parse.Installation);
  const user = new Parse.Object('_User');
  user.id = 'YXLPLWXJ71';
  pushQuery.equalTo('user', user);
  Parse.Push.send({
    where: pushQuery,
    data: {
      alert: 'Hello Squad',
      title: "GreatApp"
    }
  }, { useMasterKey: true })
    .then(() => resp.success('Push was sent successfully.'))
    .catch((error) => { resp.error(`Push failed: ${error.message}`); });
});
info: Ran cloud function sendPushToUsers for user undefined with:
  Input: {"name":"value"}
  Result: "Push was sent successfully." functionName=sendPushToUsers, name=value, user=undefined
(node:42607) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): 
TypeError: notification.setAlertTitle is not a function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions