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

Escape special key

parent 286229ae
Loading
Loading
Loading
Loading
+3 −0
Changes for src/ios/APPLocalNotification.m: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -604,6 +604,9 @@
        NSString* json = notification.options.json;
        NSString* args = [notification encodeToJSON];

        json = [json stringByReplacingOccurrencesOfString:@"'"
                                               withString:@"\\\\\\'"];

        params = [NSString stringWithFormat:
                  @"\"%@\",\"%@\",\\'%@\\',JSON.parse(\\'%@\\')",
                  id, self.applicationState, json, args];