diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index 174b666..e0792cc 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -222,7 +222,7 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate"; NSString* flag = [NSString stringWithFormat:@"%@._isActive=%@;", kAPPBackgroundJsNamespace, active]; - NSString* depFn = [NSString stringWithFormat:@"%@.on%@();", + NSString* depFn = [NSString stringWithFormat:@"%@.on('%@');", kAPPBackgroundJsNamespace, event]; NSString* fn = [NSString stringWithFormat:@"%@.fireEvent('%@');",