Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

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.