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

App throws an error on iOS if `message` is null. - Removed extra line break on...

App throws an error on iOS if `message` is null. - Removed extra line break on iOS if `title` is null or empty.
parent 4726bb7a
Loading
Loading
Loading
Loading
+2 −0
Changes for README.md: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -47,6 +47,8 @@ More informations can be found [here](https://build.phonegap.com/plugins/331).

## Release Notes
#### Version 0.7.0 (not yet released)
- [bugfix:] App throws an error on iOS if `message` is null.
- [bugfix:] Removed extra line break on iOS if `title` is null or empty.

#### Version 0.6.3 (12.12.2013)
- [bugfix:] Black screen on Android.
+2 −2
Changes for src/ios/APPLocalNotification.m: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -132,9 +132,9 @@
    notification.applicationIconBadgeNumber = badge;


    if (![msg isEqualToString:@""])
    if (!(msg == (NSString*)[NSNull null] || [msg isEqualToString:@""]))
    {
        if (title)
        if (!(title == (NSString*)[NSNull null] || [title isEqualToString:@""]))
        {
            notification.alertBody = [NSString stringWithFormat:@"%@\n%@", title, msg];
        }