diff --git a/phoneClients/android/.idea/workspace.xml b/phoneClients/android/.idea/workspace.xml
index 580902a..dfd266c 100644
--- a/phoneClients/android/.idea/workspace.xml
+++ b/phoneClients/android/.idea/workspace.xml
@@ -40,15 +40,7 @@
-
-
-
-
-
-
-
-
-
+
@@ -110,11 +102,11 @@
-
+
-
-
+
+
@@ -123,10 +115,10 @@
-
+
-
+
@@ -951,8 +943,8 @@
-
-
+
+
@@ -1422,7 +1414,7 @@
-
+
@@ -1920,17 +1912,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -1941,7 +1922,7 @@
-
+
@@ -1949,6 +1930,17 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/phoneClients/ios/GpsTracker.xcodeproj/project.pbxproj b/phoneClients/ios/GpsTracker.xcodeproj/project.pbxproj
index c460a91..647b731 100644
--- a/phoneClients/ios/GpsTracker.xcodeproj/project.pbxproj
+++ b/phoneClients/ios/GpsTracker.xcodeproj/project.pbxproj
@@ -42,7 +42,6 @@
8884705F1874EB9400867228 /* WSViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WSViewController.h; sourceTree = ""; };
888470601874EB9400867228 /* WSViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WSViewController.m; sourceTree = ""; };
888470621874EB9400867228 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
- 888470691874EB9400867228 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
8884707F1875826600867228 /* CoreLocation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreLocation.framework; path = System/Library/Frameworks/CoreLocation.framework; sourceTree = SDKROOT; };
BE3B3497D30F48C2ADC3BCE7 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; };
/* End PBXFileReference section */
@@ -88,7 +87,6 @@
8884704A1874EB9400867228 /* Foundation.framework */,
8884704C1874EB9400867228 /* CoreGraphics.framework */,
8884704E1874EB9400867228 /* UIKit.framework */,
- 888470691874EB9400867228 /* XCTest.framework */,
6C8880B2EE17432CA6FDD050 /* libPods.a */,
);
name = Frameworks;
diff --git a/phoneClients/ios/GpsTracker/WSViewController.m b/phoneClients/ios/GpsTracker/WSViewController.m
index f25849a..1c8272a 100644
--- a/phoneClients/ios/GpsTracker/WSViewController.m
+++ b/phoneClients/ios/GpsTracker/WSViewController.m
@@ -47,6 +47,15 @@
currentlyTracking = NO;
timeIntervalInSeconds = 60; // change this to the time interval you want
+
+
+ BOOL appIDIsSet = [[NSUserDefaults standardUserDefaults] boolForKey:@"appIDIsSet"];
+
+ if (!appIDIsSet) {
+ [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"appIDIsSet"];
+ [[NSUserDefaults standardUserDefaults] setObject:[[NSUUID UUID] UUIDString] forKey:@"appID"];
+ [[NSUserDefaults standardUserDefaults] synchronize];
+ }
}
- (void)startTracking
@@ -207,8 +216,8 @@
@"date": date,
@"locationmethod": @"n/a",
@"distance": distance,
- @"username": @"iosUser137",
- @"phonenumber": @"iosUser137",
+ @"username": @"iosUser01",
+ @"phonenumber": [[NSUserDefaults standardUserDefaults] stringForKey:@"appID"],
@"sessionid": sessionID,
@"extrainfo": extraInfo,
@"accuracy": accuracy,