Commit f906c0d1 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Play UILocalNotificationDefaultSoundName if sound is given as an empty string.

parent 413e2136
Loading
Loading
Loading
Loading
+2 −2
Changes for src/ios/APPLocalNotification.m: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -123,8 +123,8 @@
        notification.alertBody              = title ? [NSString stringWithFormat:@"%@\n%@", title, msg] : msg;
    }

    if ( ! [sound isEqualToString:@""]) {
        notification.soundName              = sound;
    if (sound != (NSString *) [NSNull null]) {
        notification.soundName              = [sound isEqualToString:@""] ? UILocalNotificationDefaultSoundName : sound;
    }

    notification.hasAction                  = hasAction;