Commit 6abd1ac1 authored by Bosko Petreski's avatar Bosko Petreski Committed by Bosko Petreski

Merge branch 'feature/oct12'

parents 281164c6 14db736d
......@@ -69,7 +69,7 @@
Primed.sharedInstance.debug = YES;
// Create Primed instance
[Primed.sharedInstance initWithPublicKey:@"mypubkey" secretKey:@"mysecretkey" connectionString:@"https://gw.staging.primed.io:443"];
[Primed.sharedInstance initWithPublicKey:@"mypubkey" secretKey:@"mysecretkey" connectionString:@"http://url.here"];
}
-(void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
......
......@@ -61,11 +61,8 @@
-(void)viewDidLoad {
[super viewDidLoad];
// Enable debug
//PrimedTracker.sharedInstance.debug = YES;
// Create PrimedTracker instance
[PrimedTracker.sharedInstance initWithPublicKey:@"mypubkey" secretKey:@"mysecretkey" connectionString:@"https://gw.staging.primed.io:443" trackingConnectionString:@"http://18.191.69.104:5001/v1" heartbeatInterval:10 eventQueueRetryInterval:10];
[PrimedTracker.sharedInstance initWithPublicKey:@"mypubkey" secretKey:@"mysecretkey" connectionString:@"http://url.here" trackingConnectionString:@"http://url.here" heartbeatInterval:10 eventQueueRetryInterval:10];
[NSTimer scheduledTimerWithTimeInterval:10 repeats:YES block:^(NSTimer * _Nonnull timer) {
PIOAppDelegate *appDelegate = (PIOAppDelegate *)[[UIApplication sharedApplication] delegate];
......
......@@ -31,7 +31,6 @@ typedef NS_ENUM(NSUInteger, ScrollDirection) {
NSMutableArray *savedPayloads;
NSString *sid;
NSString *did;
CLLocation *currLocation;
NSString *externalIPAddress;
}
......
......@@ -201,7 +201,6 @@
[self emitPayload:payload];
}
-(void)trackPositionChange:(CLLocation *)location{
currLocation = location;
NSDictionary *payload = [self basicEventProperties:@"positionchange" eventObject:@{@"latitude":@(location.coordinate.latitude),
@"longitude":@(location.coordinate.longitude),
@"accuracy":@(location.horizontalAccuracy)
......
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