From 50521a1f66047b6c30404244b12e9d805b5d51a5 Mon Sep 17 00:00:00 2001 From: Emil Marashliev Date: Mon, 7 Apr 2014 14:49:38 +0300 Subject: [PATCH] Added NSLog notification for beginning backup to iCloud. --- CordovaLib/Classes/CDVLocalStorage.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CordovaLib/Classes/CDVLocalStorage.m b/CordovaLib/Classes/CDVLocalStorage.m index 9dcf5c18bd..b018ae5d00 100644 --- a/CordovaLib/Classes/CDVLocalStorage.m +++ b/CordovaLib/Classes/CDVLocalStorage.m @@ -340,6 +340,12 @@ + (void)__restoreLegacyDatabaseLocationsWithBackupType:(NSString*)backupType NSMutableArray* backupInfo = [NSMutableArray arrayWithCapacity:0]; if ([backupType isEqualToString:@"cloud"]) { +#ifdef DEBUG + NSLog(@"\n\nStarted backup to iCloud! Please be careful." + "\nYour application might rejected by Apple if you store too much data." + "\nFor more information please read \"iOS Data Storage Guidelines\"" + "\nYou could find it at the following address https://developer.apple.com/icloud/documentation/data-storage/ .\n\n"); +#endif // We would like to restore old backups/caches databases to the new destination (nested in lib folder) [backupInfo addObjectsFromArray:[self createBackupInfoWithTargetDir:appLibraryFolder backupDir:[appDocumentsFolder stringByAppendingPathComponent:@"Backups"] targetDirNests:YES backupDirNests:NO rename:YES]]; [backupInfo addObjectsFromArray:[self createBackupInfoWithTargetDir:appLibraryFolder backupDir:[appLibraryFolder stringByAppendingPathComponent:@"Caches"] targetDirNests:YES backupDirNests:NO rename:NO]];