Skip to content

Commit e29249c

Browse files
Amit PalomoAmit Palomo
Amit Palomo
authored and
Amit Palomo
committed
Optional custom server URL and HTTP headers for submitting location updates
1 parent 34f349c commit e29249c

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

Framework/IngeoSDK.framework/Versions/A/Headers/IGLocation.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ typedef NS_ENUM(NSInteger, IGMotionState) {
6161
/**
6262
Returns the longitude of the location (in degrees)
6363
*/
64-
6564
@property(readonly, nonatomic) double longitude;
6665

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

7473
/**
7574
True if IGLocation object was created during background app mode

Framework/IngeoSDK.framework/Versions/A/Headers/IGLocationManager.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,28 @@
6161
*/
6262
+ (void)setUserId:(NSString *)userId;
6363

64+
/**
65+
Set custom server URL for submitting location updates
66+
67+
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.
68+
Note: Ingeo backend support gets disabled once a custom server URL is set.
69+
70+
@param url The URL for submitting location updates
71+
*/
72+
+ (void)setCustomServerURL:(NSString *)url;
73+
74+
/**
75+
Set custom HTTP headers for location update POST requests
76+
77+
If you choose to set a custom server URL for submitting location updates, you may also want
78+
to set custom HTTP headers (for authentication and such) with the outgoing location POST request.
79+
Simply provide a dictionary where keys represent the HTTP header names, and values represent the coresponding HTTP header values.
80+
81+
@param headers A dictionary containing your custom HTTP headers
82+
*/
83+
+ (void)setCustomHTTPHeaders:(NSDictionary *)headers;
84+
85+
6486
///---------------------------------------------------------------------------------------
6587
/// @name Location Monitoring Activation and Deactivation
6688
///---------------------------------------------------------------------------------------
-454 KB
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)