From 1dab2de6ec16e9e6db8c350ee3d1cc9d4bced73a Mon Sep 17 00:00:00 2001 From: Jesper Charles Balslev Date: Thu, 12 Dec 2019 17:28:49 +0000 Subject: [PATCH] Merged in JesperBalslev/cordova-plugin-run-in-background (pull request #4) Fixes iOS issues with backgroundMode.onactivate and backgroundMode.ondeactivate --- src/ios/APPBackgroundMode.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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('%@');",