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
61eabb5c
Commit
61eabb5c
authored
Feb 15, 2014
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop region-monitoring when stop method is called
parent
0f414927
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+5
-2
No files found.
src/ios/CDVBackgroundGeoLocation.m
View file @
61eabb5c
...
...
@@ -111,7 +111,7 @@
NSDictionary
*
config
=
[
command
.
arguments
objectAtIndex
:
0
];
if
(
config
[
@"desiredAccuracy"
])
{
desiredAccuracy
=
[
self
translateDesiredAccuracy
:[
config
[
@"desiredAccuracy"
]
in
tValue
]];
desiredAccuracy
=
[
self
translateDesiredAccuracy
:[
config
[
@"desiredAccuracy"
]
floa
tValue
]];
NSLog
(
@" desiredAccuracy: %@"
,
config
[
@"desiredAccuracy"
]);
}
if
(
config
[
@"stationaryRadius"
])
{
...
...
@@ -179,7 +179,10 @@
enabled
=
NO
;
[
locationManager
stopUpdatingLocation
];
[
locationManager
stopMonitoringSignificantLocationChanges
];
if
(
stationaryRegion
!=
nil
)
{
[
locationManager
stopMonitoringForRegion
:
stationaryRegion
];
stationaryRegion
=
nil
;
}
CDVPluginResult
*
result
=
nil
;
result
=
[
CDVPluginResult
resultWithStatus
:
CDVCommandStatus_OK
];
[
self
.
commandDelegate
sendPluginResult
:
result
callbackId
:
command
.
callbackId
];
...
...
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