Merged in JesperBalslev/cordova-plugin-run-in-background (pull request #4)

Fixes iOS issues with backgroundMode.onactivate and backgroundMode.ondeactivate
This commit is contained in:
Jesper Charles Balslev 2019-12-12 17:28:49 +00:00 committed by Nathan Kerr
parent 5f50704564
commit 1dab2de6ec

View File

@ -222,7 +222,7 @@ NSString* const kAPPBackgroundEventDeactivate = @"deactivate";
NSString* flag = [NSString stringWithFormat:@"%@._isActive=%@;", NSString* flag = [NSString stringWithFormat:@"%@._isActive=%@;",
kAPPBackgroundJsNamespace, active]; kAPPBackgroundJsNamespace, active];
NSString* depFn = [NSString stringWithFormat:@"%@.on%@();", NSString* depFn = [NSString stringWithFormat:@"%@.on('%@');",
kAPPBackgroundJsNamespace, event]; kAPPBackgroundJsNamespace, event];
NSString* fn = [NSString stringWithFormat:@"%@.fireEvent('%@');", NSString* fn = [NSString stringWithFormat:@"%@.fireEvent('%@');",