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
60f1ef01
Commit
60f1ef01
authored
Sep 15, 2014
by
Mark Pearce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed typo. added all stop code to terminate callback
parent
797c1a78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
CDVBackgroundGeoLocation.h
src/ios/CDVBackgroundGeoLocation.h
+1
-1
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+13
-3
No files found.
src/ios/CDVBackgroundGeoLocation.h
View file @
60f1ef01
...
...
@@ -23,7 +23,7 @@
-
(
void
)
getStationaryLocation
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
onSuspend
:(
NSNotification
*
)
notification
;
-
(
void
)
onResume
:(
NSNotification
*
)
notification
;
-
(
void
)
onAppTermin
iate
:(
NSNotification
*
)
notification
;
-
(
void
)
onAppTermin
ate
;
@end
src/ios/CDVBackgroundGeoLocation.m
View file @
60f1ef01
...
...
@@ -402,11 +402,21 @@
/**@
* Termination. Checks to see if it should turn off
*/
-
(
void
)
onAppTermin
iate
:(
NSNotification
*
)
notification
-
(
void
)
onAppTermin
ate
{
NSLog
(
@"- CDVBackgroundGeoLocation terminate"
);
if
(
isUpdatingLocation
&&
stopOnTerminate
)
{
NSLog
(
@"- CDVBackgroundGeoLocation appTerminate"
);
if
(
enabled
&&
stopOnTerminate
)
{
NSLog
(
@"- CDVBackgroundGeoLocation stoping on terminate"
);
enabled
=
NO
;
isMoving
=
NO
;
[
self
stopUpdatingLocation
];
[
locationManager
stopMonitoringSignificantLocationChanges
];
if
(
stationaryRegion
!=
nil
)
{
[
locationManager
stopMonitoringForRegion
:
stationaryRegion
];
stationaryRegion
=
nil
;
}
}
}
...
...
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