From 8cc9be6262df86ca0824b66e4fb38a4ee820830d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastia=CC=81n=20Katzer?= Date: Tue, 8 Oct 2013 11:00:36 +0200 Subject: [PATCH] Start with iOS support --- plugin.xml | 14 +++++++++++++- src/ios/APPBackgroundMode.h | 20 ++++++++++++++++++++ src/ios/APPBackgroundMode.m | 26 ++++++++++++++++++++++++++ 3 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 src/ios/APPBackgroundMode.h create mode 100644 src/ios/APPBackgroundMode.m diff --git a/plugin.xml b/plugin.xml index 3a623f4..181353a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="0.2.0dev"> BackgroundMode @@ -15,4 +15,16 @@ + + + + + + + + + + + + diff --git a/src/ios/APPBackgroundMode.h b/src/ios/APPBackgroundMode.h new file mode 100644 index 0000000..44dd44e --- /dev/null +++ b/src/ios/APPBackgroundMode.h @@ -0,0 +1,20 @@ +/** + * APPBackgroundMode.h + * Cordova BackgroundMode Plugin + * + * Created by Sebastian Katzer (github.com/katzer) on 08/10/2013. + * Copyright 2013 Sebastian Katzer. All rights reserved. + * GPL v2 licensed + */ + +#import +#import + +@interface APPBackgroundMode : CDVPlugin + +// Aktiviert den Hintergrundmodus +- (void) activateMode; +// Deaktiviert den Hintergrundmodus +- (void) deactivateMode; + +@end \ No newline at end of file diff --git a/src/ios/APPBackgroundMode.m b/src/ios/APPBackgroundMode.m new file mode 100644 index 0000000..5edebb4 --- /dev/null +++ b/src/ios/APPBackgroundMode.m @@ -0,0 +1,26 @@ +/** + * APPBackgroundMode.m + * Cordova BackgroundMode Plugin + * + * Created by Sebastian Katzer (github.com/katzer) on 08/10/2013. + * Copyright 2013 Sebastian Katzer. All rights reserved. + * GPL v2 licensed + */ + +#import "APPBackgroundMode.h" + +@implementation APPBackgroundMode + +// Aktiviert den Hintergrundmodus +- (void) activateMode +{ + +} + +// Deaktiviert den Hintergrundmodus +- (void) deactivateMode +{ + +} + +@end \ No newline at end of file