Question

I can send Push Notifications from QB Admin with no sound. How do I do the same when sending a push notification from my device/app? Just omit the sound key?

NSString *mesage = @"Hello man!";
NSMutableDictionary *payload = [NSMutableDictionary dictionary];
NSMutableDictionary *aps = [NSMutableDictionary dictionary];
// [aps setObject:@"default" forKey:QBMPushMessageSoundKey]; // just omit this line?
[aps setObject:mesage forKey:QBMPushMessageAlertKey];
[payload setObject:aps forKey:QBMPushMessageApsKey];

QBMPushMessage *message = [[QBMPushMessage alloc] initWithPayload:payload];

// Send push to users with ids 292,300,1295
[QBMessages TSendPush:message toUsers:@"292,300,1395" delegate:self];

Also, is there a limit for the number of ID's in the notification?

Was it helpful?

Solution

Yes, just omit this line.

No limits of the number of ID's. But if you have many IDs, you can also use Tags

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top