From 48a06fc3eba003537fb9db899c0f4e0c66a68bc7 Mon Sep 17 00:00:00 2001 From: Nathan Kerr Date: Thu, 1 Aug 2019 13:44:43 -0700 Subject: [PATCH] Update event firing. Closes #5 --- src/ios/APPBackgroundMode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('%@');",