Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Andrew Boryk
Andrew Boryk
15,916 Points

Some Parse Push Notifications received yet not displayed

I am using Parse Push notifications for iOS and my notifications are being sent and displayed for some instances, but not others. My messages that aren't being received are being sent as: PFQuery *pushQuery = [PFInstallation query]; NSLog(@"User.ObjectId: %@", user.objectId); [pushQuery whereKey:@"user" equalTo:user.objectId]; PFPush *push = [[PFPush alloc] init]; [push setQuery:pushQuery]; // Set our Installation query NSString *pString = [NSString stringWithFormat:@"%@ has sent you a friend request!", [self.currentUser username]]; [push setMessage:pString]; [push sendPushInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSLog(@"Sent Push"); } }];

Where both NSLog statements (User.objectId and Sent Push) are being executed. The pushes are being sent and received on the back end, but the user is only seeing some of them.