当我尝试从parsing或设备发送推送时,状态为绿色,但没有成功推送

我正尝试从一个用户发送推送通知给另一个用户。 我试着发送推送通知表单parsing的仪表板,但就像分段推动它说成功,但实际上并没有发送。

func pushNotifications(){ let userQuery: PFQuery = PFUser.query()! userQuery.whereKey("objectId", containedIn: Array(setOfSelectedFriends)) let pushQuery: PFQuery = PFInstallation.query()! pushQuery.whereKey("user", matchesQuery: userQuery) let push = PFPush() push.setQuery(pushQuery) push.setMessage("Hello, World!") push.sendPushInBackgroundWithBlock { success, error in if success { print("The push succeeded.") } else { print("The push failed.") } } }