Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cordova-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-background-geolocation
Commits
7a672462
Commit
7a672462
authored
Jun 01, 2015
by
Chris Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo in ios src-filenames: CDVBackgroundGeoLocation vs CDVBackgroundGeolocation
parent
2885c5bb
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
5 deletions
+24
-5
CDVBackgroundGeolocation.h
src/ios/CDVBackgroundGeolocation.h
+1
-0
CDVBackgroundGeolocation.m
src/ios/CDVBackgroundGeolocation.m
+11
-2
TSLocationManager.h
...nManager.framework/Versions/1/Headers/TSLocationManager.h
+1
-1
CodeDirectory
...amework/Versions/1/Resources/_CodeSignature/CodeDirectory
+0
-0
CodeResources
...amework/Versions/1/Resources/_CodeSignature/CodeResources
+2
-2
CodeSignature
...amework/Versions/1/Resources/_CodeSignature/CodeSignature
+0
-0
TSLocationManager
.../TSLocationManager.framework/Versions/1/TSLocationManager
+0
-0
BackgroundGeoLocation.js
www/BackgroundGeoLocation.js
+9
-0
No files found.
src/ios/CDVBackgroundGeo
L
ocation.h
→
src/ios/CDVBackgroundGeo
l
ocation.h
View file @
7a672462
...
@@ -27,5 +27,6 @@
...
@@ -27,5 +27,6 @@
-
(
void
)
resetOdometer
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
resetOdometer
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
addGeofence
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
addGeofence
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
onGeofence
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
onGeofence
:(
CDVInvokedUrlCommand
*
)
command
;
-
(
void
)
playSound
:(
CDVInvokedUrlCommand
*
)
command
;
@end
@end
src/ios/CDVBackgroundGeo
L
ocation.m
→
src/ios/CDVBackgroundGeo
l
ocation.m
View file @
7a672462
////
////
// CDVBackgroundGeo
L
ocation
// CDVBackgroundGeo
l
ocation
//
//
// Created by Chris Scott <chris@transistorsoft.com> on 2013-06-15
// Created by Chris Scott <chris@transistorsoft.com> on 2013-06-15
//
//
#import "CDVBackgroundGeo
L
ocation.h"
#import "CDVBackgroundGeo
l
ocation.h"
@implementation
CDVBackgroundGeolocation
{
@implementation
CDVBackgroundGeolocation
{
TSLocationManager
*
bgGeo
;
TSLocationManager
*
bgGeo
;
...
@@ -209,6 +209,15 @@
...
@@ -209,6 +209,15 @@
}
}
[
self
.
geofenceListeners
addObject
:
command
.
callbackId
];
[
self
.
geofenceListeners
addObject
:
command
.
callbackId
];
}
}
-
(
void
)
playSound
:(
CDVInvokedUrlCommand
*
)
command
{
int
soundId
=
[[
command
.
arguments
objectAtIndex
:
0
]
integerValue
];
[
bgGeo
playSound
:
soundId
];
CDVPluginResult
*
result
=
[
CDVPluginResult
resultWithStatus
:
CDVCommandStatus_OK
];
[
self
.
commandDelegate
sendPluginResult
:
result
callbackId
:
command
.
callbackId
];
}
/**
/**
* Called by js to signify the end of a background-geolocation event
* Called by js to signify the end of a background-geolocation event
*/
*/
...
...
src/ios/TSLocationManager.framework/Versions/1/Headers/TSLocationManager.h
View file @
7a672462
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
-
(
BOOL
)
isEnabled
;
-
(
BOOL
)
isEnabled
;
-
(
NSDictionary
*
)
locationToDictionary
:(
CLLocation
*
)
location
;
-
(
NSDictionary
*
)
locationToDictionary
:(
CLLocation
*
)
location
;
-
(
void
)
addGeofence
:(
NSString
*
)
identifier
radius
:(
CLLocationDistance
)
radius
latitude
:(
CLLocationDegrees
)
latitude
longitude
:(
CLLocationDegrees
)
longitude
;
-
(
void
)
addGeofence
:(
NSString
*
)
identifier
radius
:(
CLLocationDistance
)
radius
latitude
:(
CLLocationDegrees
)
latitude
longitude
:(
CLLocationDegrees
)
longitude
;
-
(
void
)
playSound
:(
SystemSoundID
)
soundId
;
@end
@end
src/ios/TSLocationManager.framework/Versions/1/Resources/_CodeSignature/CodeDirectory
View file @
7a672462
No preview for this file type
src/ios/TSLocationManager.framework/Versions/1/Resources/_CodeSignature/CodeResources
View file @
7a672462
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<dict>
<dict>
<key>
Headers/TSLocationManager.h
</key>
<key>
Headers/TSLocationManager.h
</key>
<data>
<data>
w7pffjKj41qqtvUN0J6fOruESPM
=
1VuoMC44vEUkt1CU0bbgpBs3zGY
=
</data>
</data>
<key>
Info.plist
</key>
<key>
Info.plist
</key>
<data>
<data>
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<dict>
<dict>
<key>
Headers/TSLocationManager.h
</key>
<key>
Headers/TSLocationManager.h
</key>
<data>
<data>
w7pffjKj41qqtvUN0J6fOruESPM
=
1VuoMC44vEUkt1CU0bbgpBs3zGY
=
</data>
</data>
<key>
Modules/module.modulemap
</key>
<key>
Modules/module.modulemap
</key>
<data>
<data>
...
...
src/ios/TSLocationManager.framework/Versions/1/Resources/_CodeSignature/CodeSignature
View file @
7a672462
No preview for this file type
src/ios/TSLocationManager.framework/Versions/1/TSLocationManager
View file @
7a672462
No preview for this file type
www/BackgroundGeoLocation.js
View file @
7a672462
...
@@ -206,6 +206,15 @@ module.exports = {
...
@@ -206,6 +206,15 @@ module.exports = {
'
onGeofence
'
,
'
onGeofence
'
,
[]);
[]);
},
},
playSound
:
function
(
soundId
)
{
var
success
=
function
()
{};
var
failure
=
function
()
{};
exec
(
success
,
failure
,
'
BackgroundGeoLocation
'
,
'
playSound
'
,
[
soundId
]);
},
_setTimestamp
:
function
(
rs
)
{
_setTimestamp
:
function
(
rs
)
{
// Transform timestamp to Date instance.
// Transform timestamp to Date instance.
if
(
typeof
(
rs
)
===
'
object
'
)
{
if
(
typeof
(
rs
)
===
'
object
'
)
{
...
...
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