mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 07:14:54 +00:00
Start with iOS support
This commit is contained in:
parent
09960c6fa2
commit
8cc9be6262
14
plugin.xml
14
plugin.xml
@ -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>
|
||||
|
20
src/ios/APPBackgroundMode.h
Normal file
20
src/ios/APPBackgroundMode.h
Normal 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
|
26
src/ios/APPBackgroundMode.m
Normal file
26
src/ios/APPBackgroundMode.m
Normal 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
|
Loading…
Reference in New Issue
Block a user