Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-plugin-background-geolocation
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Aksimaya
cordova-plugin-background-geolocation
Commits
8fa3d817
Commit
8fa3d817
authored
Sep 26, 2013
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for PhoneGap 3
parent
0c34989d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
CDVBackgroundGeoLocation.h
src/ios/CDVBackgroundGeoLocation.h
+1
-2
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+4
-12
No files found.
src/ios/CDVBackgroundGeoLocation.h
View file @
8fa3d817
...
...
@@ -5,7 +5,7 @@
//
#import <Cordova/CDVPlugin.h>
#import
<Cordova/CDVLocation.h>
#import
"CDVLocation.h"
@interface
CDVBackgroundGeoLocation
:
CDVPlugin
<
CLLocationManagerDelegate
>
-
(
void
)
configure
:(
CDVInvokedUrlCommand
*
)
command
;
...
...
@@ -20,7 +20,6 @@
@property
(
nonatomic
,
assign
)
BOOL
enabled
;
@property
(
nonatomic
,
retain
)
NSNumber
*
maxBackgroundHours
;
@property
(
nonatomic
,
strong
)
CLLocationManager
*
locationManager
;
@property
(
strong
)
CDVHeadingData
*
headingData
;
@property
(
nonatomic
,
strong
)
CDVLocationData
*
locationData
;
@property
(
strong
)
NSMutableArray
*
locationCache
;
@property
(
nonatomic
,
retain
)
NSDate
*
suspendedAt
;
...
...
src/ios/CDVBackgroundGeoLocation.m
View file @
8fa3d817
...
...
@@ -4,13 +4,13 @@
// Created by Chris Scott <chris@transistorsoft.com> on 2013-06-15
// Largely based upon http://www.mindsizzlers.com/2011/07/ios-background-location/
//
#import "CDVLocation.h"
#import "CDVBackgroundGeoLocation.h"
#import <Cordova/CDVJSON.h>
@implementation
CDVBackgroundGeoLocation
@synthesize
enabled
,
token
,
url
,
locationManager
,
locationData
,
headingData
,
locationCache
,
suspendedAt
;
@synthesize
enabled
,
token
,
url
,
locationManager
,
locationData
,
locationCache
,
suspendedAt
;
-
(
CDVPlugin
*
)
initWithWebView
:(
UIWebView
*
)
theWebView
{
...
...
@@ -30,7 +30,7 @@
}
-
(
void
)
configure
:(
CDVInvokedUrlCommand
*
)
command
{
self
.
locationManager
=
[[
[
CLLocationManager
alloc
]
init
]
autorelease
];
self
.
locationManager
=
[[
CLLocationManager
alloc
]
init
];
self
.
locationManager
.
delegate
=
self
;
self
.
token
=
[
command
.
arguments
objectAtIndex
:
0
];
...
...
@@ -177,15 +177,7 @@
-
(
void
)
dealloc
{
locationManager
.
delegate
=
nil
;
[
token
release
];
[
url
release
];
[
locationManager
release
];
[
locationData
release
];
[
headingData
release
];
[
locationCache
release
];
[
suspendedAt
release
];
[
super
dealloc
];
self
.
locationManager
.
delegate
=
nil
;
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment