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
13d8b881
Commit
13d8b881
authored
Dec 13, 2013
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pluginInitialize method instead
parent
1253c4b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
CDVBackgroundGeoLocation.m
src/ios/CDVBackgroundGeoLocation.m
+1
-2
No files found.
src/ios/CDVBackgroundGeoLocation.m
View file @
13d8b881
...
...
@@ -29,7 +29,7 @@
NSInteger
locationTimeout
;
}
-
(
CDVPlugin
*
)
initWithWebView
:(
UIWebView
*
)
theWebView
-
(
void
)
pluginInitialize
{
// background location cache, for when no network is detected.
locationCache
=
[
NSMutableArray
array
];
...
...
@@ -39,7 +39,6 @@
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
onSuspend
:
)
name
:
UIApplicationDidEnterBackgroundNotification
object
:
nil
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
onResume
:
)
name
:
UIApplicationWillEnterForegroundNotification
object
:
nil
];
return
self
;
}
/**
* configure plugin
...
...
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