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
98b8fc25
Commit
98b8fc25
authored
Dec 13, 2013
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dispatch_async stuff in ending bgTask
parent
13d8b881
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+4
-5
No files found.
src/ios/CDVBackgroundGeoLocation.m
View file @
98b8fc25
...
...
@@ -80,10 +80,11 @@
*/
-
(
void
)
start
:(
CDVInvokedUrlCommand
*
)
command
{
NSLog
(
@"- CDVBackgroundGeoLocation start"
);
enabled
=
YES
;
UIApplicationState
state
=
[[
UIApplication
sharedApplication
]
applicationState
];
NSLog
(
@"- CDVBackgroundGeoLocation start (background? %d)"
,
state
);
if
(
state
==
UIApplicationStateBackground
)
{
[
self
setPace
:
isMoving
];
}
...
...
@@ -173,9 +174,7 @@
UIApplication
*
app
=
[
UIApplication
sharedApplication
];
bgTask
=
[
app
beginBackgroundTaskWithExpirationHandler
:
^
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
self
stopBackgroundTask
];
});
}];
[
self
.
commandDelegate
runInBackground
:
^
{
...
...
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