Start with iOS support

This commit is contained in:
Sebastián Katzer 2013-10-08 11:00:36 +02:00
parent 09960c6fa2
commit 8cc9be6262
3 changed files with 59 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
id="de.appplant.cordova.plugin.background-mode"
version="0.0.0">
version="0.2.0dev">
<name>BackgroundMode</name>
@ -15,4 +15,16 @@
<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
<!-- ios -->
<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="BackgroundMode">
<param name="ios-package" value="APPBackgroundMode"/>
</feature>
</config-file>
<header-file src="src/ios/APPBackgroundMode.h" />
<source-file src="src/ios/APPBackgroundMode.m" />
</platform>
</plugin>

View File

@ -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 <Foundation/Foundation.h>
#import <Cordova/CDVPlugin.h>
@interface APPBackgroundMode : CDVPlugin
// Aktiviert den Hintergrundmodus
- (void) activateMode;
// Deaktiviert den Hintergrundmodus
- (void) deactivateMode;
@end

View File

@ -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