Commit f906c0d1 by Sebastián Katzer

Play UILocalNotificationDefaultSoundName if sound is given as an empty string.

parent 413e2136
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
notification.alertBody = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg; notification.alertBody = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg;
} }
if ( ! [sound isEqualToString:@""]) { if (sound != (NSString *) [NSNull null]) {
notification.soundName = sound; notification.soundName = [sound isEqualToString:@""] ? UILocalNotificationDefaultSoundName : sound;
} }
notification.hasAction = hasAction; notification.hasAction = hasAction;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment