diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m index be941ee..4537fcc 100644 --- a/src/ios/APPBackgroundMode.m +++ b/src/ios/APPBackgroundMode.m @@ -221,8 +221,8 @@ 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('%@');",