for whatever reason I cannot get my push notifications to make the default sound nor update the badge number when I receive them. Here's my code below. Do you think it's something wrong with my code? Or is there a configuration issue that I'm not aware of? Thanks for your help!
PFQuery *pushQuery = [PFInstallation query];
[pushQuery whereKey:@"installationUser" containedIn:recipients];
// Send push notification to our query
PFPush *push = [[PFPush alloc] init];
[push setQuery:pushQuery];
NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
message, @"alert",
@"Increment", @"badge",
nil];
[push setData:data];
[push setMessage:[NSString stringWithFormat:@"%@ sent you a photo!", currentUser.username]];
[push sendPushInBackgroundWithBlock:^(BOOL succeeded, NSError *error) {
if(!error)
{
NSLog(@"Push notification sent!");
}
}];