Commit ef95e372 authored by Chris Scott's avatar Chris Scott

Merge pull request #65 from christocracy/fix-type-in-ios-src-filenames

Fix type in ios src filenames
parents c72b389c 1f61f9c9
......@@ -27,5 +27,6 @@
- (void) resetOdometer:(CDVInvokedUrlCommand *)command;
- (void) addGeofence:(CDVInvokedUrlCommand *)command;
- (void) onGeofence:(CDVInvokedUrlCommand *)command;
- (void) playSound:(CDVInvokedUrlCommand *)command;
@end
////
// CDVBackgroundGeoLocation
// CDVBackgroundGeolocation
//
// Created by Chris Scott <chris@transistorsoft.com> on 2013-06-15
//
#import "CDVBackgroundGeoLocation.h"
#import "CDVBackgroundGeolocation.h"
@implementation CDVBackgroundGeolocation {
TSLocationManager *bgGeo;
......@@ -209,6 +209,15 @@
}
[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
*/
......
......@@ -22,6 +22,6 @@
- (BOOL) isEnabled;
- (NSDictionary*) locationToDictionary:(CLLocation*)location;
- (void) addGeofence:(NSString*)identifier radius:(CLLocationDistance)radius latitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude;
- (void) playSound:(SystemSoundID)soundId;
@end
......@@ -6,7 +6,7 @@
<dict>
<key>Headers/TSLocationManager.h</key>
<data>
w7pffjKj41qqtvUN0J6fOruESPM=
1VuoMC44vEUkt1CU0bbgpBs3zGY=
</data>
<key>Info.plist</key>
<data>
......@@ -21,7 +21,7 @@
<dict>
<key>Headers/TSLocationManager.h</key>
<data>
w7pffjKj41qqtvUN0J6fOruESPM=
1VuoMC44vEUkt1CU0bbgpBs3zGY=
</data>
<key>Modules/module.modulemap</key>
<data>
......
......@@ -206,6 +206,15 @@ module.exports = {
'onGeofence',
[]);
},
playSound: function(soundId) {
var success = function() {};
var failure = function() {};
exec(success,
failure,
'BackgroundGeoLocation',
'playSound',
[soundId]);
},
_setTimestamp: function(rs) {
// Transform timestamp to Date instance.
if (typeof(rs) === 'object') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment