Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

fix plist string:

roryclearb91dede75b39
diff --git a/clearcam.xcodeproj/project.pbxproj b/clearcam.xcodeproj/project.pbxproj
index 4766e48..a6a37a3 100644
--- a/clearcam.xcodeproj/project.pbxproj
+++ b/clearcam.xcodeproj/project.pbxproj
@@ -168,7 +168,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = clearcam/Info.plist;
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
- INFOPLIST_KEY_NSCameraUsageDescription = "We need access to your camera to take photos and videos.";
+ INFOPLIST_KEY_NSCameraUsageDescription = "Clearcam needs access to your camera to record video, stream video and detect objects.";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
@@ -201,7 +201,7 @@
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = clearcam/Info.plist;
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
- INFOPLIST_KEY_NSCameraUsageDescription = "We need access to your camera to take photos and videos.";
+ INFOPLIST_KEY_NSCameraUsageDescription = "Clearcam needs access to your camera to record video, stream video and detect objects.";
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
diff --git a/clearcam/Info.plist b/clearcam/Info.plist
index 58848fc..a517842 100644
--- a/clearcam/Info.plist
+++ b/clearcam/Info.plist
@@ -2,8 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
- <key>NSLocalNetworkUsageDescription</key>
- <string>To automatically discover other devices running Clearcam. Clearcam needs access to your network.</string>
+ <key>NSCameraUsageDescription</key>
+ <string>Clearcam needs access to your camera to record video, stream video and detect objects.</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
@@ -42,7 +42,7 @@
</dict>
<key>UIBackgroundModes</key>
<array>
- <string>fetch</string>
+ <string>fetch</string>
<string>remote-notification</string>
</array>
<key>UIFileSharingEnabled</key>
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.m
index eaaf0e6..e0ceca7 100644
--- a/clearcam/ViewController.m
+++ b/clearcam/ViewController.m
@@ -52,6 +52,7 @@
NSMutableDictionary *classColorMap;
- (void)viewDidLoad {
+ NSLog(@"NSCameraUsageDescription: %@", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSCameraUsageDescription"]);
[super viewDidLoad];
if(![[NSUserDefaults standardUserDefaults] boolForKey:@"isSubscribed"] || ![[NSDate date] compare:[[NSUserDefaults standardUserDefaults] objectForKey:@"expiry"]] || [[NSDate date] compare:[[NSUserDefaults standardUserDefaults] objectForKey:@"expiry"]] == NSOrderedDescending){
[[StoreManager sharedInstance] verifySubscriptionWithCompletion:^(BOOL isActive, NSDate *expiryDate) {