Skip to content

Commit

Permalink
Optional custom server URL and HTTP headers for submitting location u…
Browse files Browse the repository at this point in the history
…pdates
  • Loading branch information
Amit Palomo authored and Amit Palomo committed May 21, 2015
1 parent 34f349c commit e29249c
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Framework/IngeoSDK.framework/Versions/A/Headers/IGLocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,14 @@ typedef NS_ENUM(NSInteger, IGMotionState) {
/**
Returns the longitude of the location (in degrees)
*/

@property(readonly, nonatomic) double longitude;

/**
Returns the speed of the location in meters per second. Negative if speed is invalid.
speed attribute provided by IGLocation is far more accurate than speed attribue provided by Apple's CLLocation
*/
@property(readonly, nonatomic) CLLocationSpeed speed;
- (CLLocationSpeed)speed;

/**
True if IGLocation object was created during background app mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,28 @@
*/
+ (void)setUserId:(NSString *)userId;

/**
Set custom server URL for submitting location updates
You may wish to submit location updates to your own server. Your server should respond to POST requests on this URL containing the IGLocation object in JSON format.
Note: Ingeo backend support gets disabled once a custom server URL is set.
@param url The URL for submitting location updates
*/
+ (void)setCustomServerURL:(NSString *)url;

/**
Set custom HTTP headers for location update POST requests
If you choose to set a custom server URL for submitting location updates, you may also want
to set custom HTTP headers (for authentication and such) with the outgoing location POST request.
Simply provide a dictionary where keys represent the HTTP header names, and values represent the coresponding HTTP header values.
@param headers A dictionary containing your custom HTTP headers
*/
+ (void)setCustomHTTPHeaders:(NSDictionary *)headers;


///---------------------------------------------------------------------------------------
/// @name Location Monitoring Activation and Deactivation
///---------------------------------------------------------------------------------------
Expand Down
Binary file modified Framework/IngeoSDK.framework/Versions/A/IngeoSDK
Binary file not shown.
Binary file modified Framework/IngeoSDK.framework/Versions/A/Resources/Info.plist
Binary file not shown.

0 comments on commit e29249c

Please sign in to comment.