Cloud and Local Storage

RSS for tag

Store data locally or in the cloud.

Posts under Cloud and Local Storage tag

21 Posts
Sort by:
Post not yet marked as solved
2 Replies
208 Views
In the system of iOS17, I store the login information through NSUserDefaults, but after the application is closed, I open it again, and the information stored in NSUserDefaults does not exist. I have not found the specific reason. I did not find this problem in the system before ios 17. This issue only appeared after iOS 17.
Posted
by ajie.
Last updated
.
Post not yet marked as solved
1 Replies
177 Views
I have app that is using container for small settings data and iCloud for larger storage, but I also want to be able to save to local documents folder. When I do that the url that is created is not local docs, but: path: file:///var/mobile/Containers/Data/Application/85A8B8C9-C0C3-4843-A74C-5A951F593790/Documents/Dialog08:45,%2022%20Feb%202024 Here is code using to save to local docs folder. func saveDataToFile(data: String) { //file will be datetimedialog let formatter = DateFormatter() formatter.dateFormat = "HH:mm, d MMM y" var dateTime = Date.getCurrentDate() dateTime = formatter.string(from: Date.now) var saveFilename = "Dialog" saveFilename.append(dateTime) let path = getDocumentsDirectory().appendingPathComponent(saveFilename) print("path: \(path)") // let fileURL = URL(fileURLWithPath: data, relativeTo: path) do { try data.write(to: path, atomically: true, encoding: String.Encoding.utf8) } catch { print(error.localizedDescription) } } func getDocumentsDirectory() -> URL { let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) return paths[0] }
Posted
by jpromano.
Last updated
.
Post marked as solved
2 Replies
289 Views
Hello! I'm in the process of creating an app for iOS. A part of the app relies on data that is collected as the user uses the app. This data is then stored in a .CSV file for easy storage, retrieval, and a small size even if it grows larger than expected. The data is really simple and easy to traverse, however it won't be stored on a remote database, and only locally on the user's device. I've read that updating the app doesn't overwrite the data of the current version, but instead places the new version of the app in a new directory entirely while the other, older version is then deleted. Is it possible to mark certain files to be transferred and not replaced entirely? I'd like to know if it's possible or not before I make the mistake and learn the hard way 😅 Also I'm open to any alternative ways to store such data that people may suggest! Thanks a lot in advance! Help is much appreciated Jack
Posted Last updated
.
Post not yet marked as solved
5 Replies
674 Views
Hello. I'm experiencing some issues with my iOS application. We distribute our app through an enterprise plan, and our app is almost 8 years old. We've noticed that on iOS 17 devices, our UserDefaults files are not being saved in the Preferences folder. I've conducted research on this issue, and everywhere I looked, it indicated that the system should handle this saving process. Does anyone know what changes have been made in iOS 17 that prevent us from saving data in UserDefaults? I've tested it with a new app, and it worked perfectly fine. Below are screenshots of the 'Preferences' folder on iOS 17 and 16.
Posted Last updated
.
Post not yet marked as solved
0 Replies
338 Views
It appears that some attachments get stuck and aren't offloaded like they are on iOS. I have 200-300 attachments, all dated 5/3/2021 (perhaps that's when I last formatted this Mac and downloaded from iCloud), and then it keeps 1-10 attachments from every month after that. I don't want to delete the attachments because I want them to stay in iCloud. Is there a terminal command to offload or set the maximum space Messages may use or something? Signing out and signing back in does nothing. They stay on the hard drive. Messages on my phone with the same synced conversations stay around 21GB.
Posted
by twalters.
Last updated
.
Post not yet marked as solved
0 Replies
334 Views
When using the "Quick Start" function on a new device, apps are downloaded from the App Store, and the app data itself is restored from an iTunes or iCloud backup. What I would like to know is if the same behavior applies to apps installed through Ad-Hoc. More specifically, I'm trying to test how my app handles being restored on a new device, since it has some inner counter-measures to avoid this for security purposes. (For example, I'm marking several files as "do not back up") Note: My app exists on the App Store, but I'd like to test a newer version which isn't available on the App Store yet. My testing process is as follows: Install the current version of my app through Ad-Hoc on device A. Perform a back up (enable it and wait for the device to finish) Use Quick Start on device B. Once the setup has finished, install the new version of my app using Ad-Hoc on device B. Some things I'm unsure about are, I've read some old articles stating that the app data (not the app itself) from ad-hoc apps is actually backed up by iCloud and can be restored on a new device. (Is this still true?) Will Quick Start on device B attempt to install the App Store version of my app? I assume installing the App Store version on device A will trigger "Quick Start" to automatically install the App Store version on device B (along with the backed up data). Can I just install the new version through Ad-Hoc on device B without affecting the app's backed up installed data? Will Quick Start still install the App Store version on device B if I first download the App Store version on device A and overwrite it with the Ad-Hoc version? Thanks for any information you can provide.
Posted Last updated
.
Post not yet marked as solved
0 Replies
426 Views
I am working on an ambitious project where I need to integrate a complex database system written in PHP and MySQL with a SwiftUI app. The current system involves 78 tables with intricate connections, and I've attempted to map out the data using Vapor, but I found the task to be overwhelming. My Attempts: Reverse Engineering: I tried to reverse engineer the database to understand its structure, but the sheer complexity has made it a challenging endeavor. Using Vapor: I hoped that Vapor might help me map out the data, but it turned out to be an impossible task due to the database's intricacies. What I Want to Achieve: I need to perform CRUD (Create, Read, Update, Delete) operations on this existing PHP and MySQL database using a SwiftUI app. My Questions: SwiftUI Integration: Should I build a SwiftUI app and then work on the integration? If so, what would be the best approach? Data Management: Would dumping the data into CloudKit or Firebase be a suitable step? Or are there better solutions that I might explore? Existing Tools or Libraries: Are there any tools or libraries that might simplify this task, considering the complexity of the existing system? I appreciate any insights or suggestions from those who have tackled similar challenges. Your expertise would be invaluable in guiding me through this project. Thank you in advance!
Posted Last updated
.
Post not yet marked as solved
1 Replies
506 Views
Maybe I'm going about this completely the wrong way but I've got two stores loaded in my app: private and shared. I've got zone-wide sharing enabled and I can update records that exist in the shared database (on the participant device), and see updates sync when changed by the owner. However, is it possible to save a new object specifically to the shared database as the participant? If I create a new object in my managed object context it saves it to the private database. Can provide code if needed but it's more conceptual at this stage.
Posted Last updated
.
Post not yet marked as solved
0 Replies
538 Views
Hi, I maintain a cloud drive app which transitioned from SMB based mounting of cloud storage to File Provider. Our users on fresh installs of the app are fine, but users who updated from the SMB app are getting an error. I can see in the File Provider logs that the error is: "Failed to connect to domain socket: Connection refused". I can see in fileproviderctl listproviders that the provider does not load. Can anyone help me understand this error or what parts of the system to flush to reproduce the environment of a fresh install?
Posted Last updated
.
Post not yet marked as solved
0 Replies
629 Views
Hi, I am using Cloudkit to maintain unique data in all devices. I install the device and enter the data that are merge in all devices and i don't open the device for a day, i worked with other device but after i open the old device the new data get erased and old data got merge with all devices. How can i handle the data i need only the new data.
Posted
by rasterdev.
Last updated
.
Post not yet marked as solved
0 Replies
765 Views
Hi everyone i have an app that has some related entities. throught the different type of tutorial i see that apple incourages to use relationship and inverse relationship in the core data model, and that what i have done. Now, when i reach the point that a user wants to share one particular entity to other users, the inverse relationship spread the share to all the graph of core database shouldn't the inverse relationship be ignored by the share process? if i want to share only that record and the child, not the parent one, should i break the realtionship with the parent (that for me is the inverse relationship) imposing it to a nil value?
Posted
by TheFinal.
Last updated
.
Post not yet marked as solved
1 Replies
779 Views
Is there any reliable way to persist some app data after the user deletes the app, so that the next time they download it again the data will still be accessible? For a variety of reasons, I do not currently want to require users to create accounts and then store that data on an external server - I am just storing all app data in UserDefaults. If a user deletes the app, though, it is important that if a user redownloads it certain datapoints would be accessible from the last time they used it. I have done a bit of research and it looks like Keychain can persist data after app deletion, but it seems like that might not be optimal (as it's meant more for things like passwords). Are there any other solutions I should try, or is it inevitable that I will need to require users to create accounts and then store this information in a backend I manage?
Posted Last updated
.
Post not yet marked as solved
0 Replies
588 Views
I had been using an app called - calculator+ to hide images and videos. That app is no more available on app store so I am unable to access all those hidden images and videos. I have not deleted the app data and app from my phone so I do have the encrypted files in my phone storage. how to decrypt those images and videos. pleas ehelp, struggling since 2 years for this.
Posted Last updated
.
Post marked as solved
49 Replies
78k Views
Hi Dev Team, I don’t see many answers on this topic but this seems to be a real concern for many users. I went from my IPhone 8+ with 256gb and I had 39gb used, about 7gb was other storage no big deal. I decided to go with an iPhone 12 Pro Max 128gb. I now have 60gb used of which 26gb is other storage!!! I have done 3 clean installs from different iCloud backups and no change. I do not buy an iPhone to see half of my storage being used by other and system storage. Also I do not explain why I now see some gb with photos and messages as it is normally all stored on iCloud (I have 2.2tb). Same thing I do not subscribe to iCloud or AppleOne to have data store on my iPhone while it should be all on iCloud. I did not have this on my 8+. I called Apple but they were clueless...simply telling me that it is normal and that it may take a few days for things to get back to normal...it is not true. is that a bug? My iPhone flash memory corrupted?Will this be taken into consideration? Anyone else having this issue please post. Thanks much! X
Posted
by MacGiver.
Last updated
.
Post not yet marked as solved
0 Replies
548 Views
Hallo, in my coudkitcontainer i have the following structure: RECORD TYPE CD_ToolsEntity ( CD_ankle DOUBLE QUERYABLE SORTABLE, CD_cuttingToolHolder STRING QUERYABLE SEARCHABLE SORTABLE, CD_entityName STRING QUERYABLE SEARCHABLE SORTABLE, CD_favoriteFrontbase INT64 QUERYABLE SORTABLE, CD_imagename STRING QUERYABLE SEARCHABLE SORTABLE, CD_inGrindDirection INT64 QUERYABLE SORTABLE, CD_name STRING QUERYABLE SEARCHABLE SORTABLE, CD_remark STRING QUERYABLE SEARCHABLE SORTABLE, CD_sectionUniqueID STRING QUERYABLE SEARCHABLE SORTABLE, CD_sectionUniqueName STRING QUERYABLE SEARCHABLE SORTABLE, CD_uniqueID STRING QUERYABLE SEARCHABLE SORTABLE, "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); RECORD TYPE CD_ToolsSectionsEntity ( CD_sectionName STRING QUERYABLE SEARCHABLE SORTABLE, CD_uniqueID STRING QUERYABLE SEARCHABLE SORTABLE, "___createTime" TIMESTAMP, "___createdBy" REFERENCE, "___etag" STRING, "___modTime" TIMESTAMP, "___modifiedBy" REFERENCE, "___recordID" REFERENCE, GRANT WRITE TO "_creator", GRANT CREATE TO "_icloud", GRANT READ TO "_world" ); Can it be, that the CD_uniqueID, that I have made as string in both entity be a problem? Is for the cloudkitdatabase needed that every fieldname have to be unique in the hole structure?
Posted
by Rol4nd.
Last updated
.
Post not yet marked as solved
1 Replies
1.2k Views
Okay so I have a CloudKit backed CoreData model. I've been building in development for several months. I have a lot of data stored in the app on the development CloudKit. Then I installed the TestFlight version on that device. It is now missing a lot of data that used to be on that device. And it won't sync with my other apps. I assume this is because of the production vs development thing.. But even when I install the app via Xcode, syncing is broken. Its not updating and I'm just getting this error: I'm really worried about this and am totally reliant on CloudKit working. But now such simple thing broke syncing and I'm not sure how to get it back up and running CoreData: debug: CoreData+CloudKit: -[PFCloudKitSerializer applyUpdatedRecords:deletedRecordIDs:toStore:inManagedObjectContext:onlyUpdatingAttributes:andRelationships:madeChanges:error:]_block_invoke(1021): Failed to find matching objectIDs for <CKRecordID: 0x2823541c0; recordName=BFE5B0E0-E4BC-4151-B64F-771AF271DE6C, zoneID=com.apple.coredata.cloudkit.zone:defaultOwner> / <CKRecordID: 0x2823542c0; recordName=B342EDDF-8F2A-4496-B5AB-BEF29AF4018C, zoneID=com.apple.coredata.cloudkit.zone:defaultOwner> in pending relationship: 0x9eebd60aabec84c2 x-coredata://1DE90E1A-C7CF-4963-B10F-60142BFFCFD7/NSCKImportPendingRelationship/p11489
Posted Last updated
.
Post not yet marked as solved
5 Replies
2.2k Views
Hi - Our iOS application uses a shared container to store data so that it is accessible by the main app as well as several app extensions (widgets, share action, watch app, notification service, etc.) I've noticed on a few devices that the shared container is persisting after the app is uninstalled and reinstalled. The URL for the shared container has a unique UUID that I can see is the same across installs, and files that were saved to it are still there. Most devices behave as I would expect: they lose the contents of the shared container, and get a brand new empty container on reinstall. The problem doesn't seem to be iCloud as I have completely disabled iCloud access on the test devices and the folder continues to persist. Has anyone else experienced this, and is there a way to ensure that the shared container is deleted when the app is uninstalled? Thanks, Brent
Posted Last updated
.
Post not yet marked as solved
2 Replies
821 Views
Hi all, We have an iOS app which has Cloudkit Coredata as storage mechanism. Whenever user logout of iCloud in settings app, then the Coredata is wiped out and no row exists in the tables. Can we prevent this. We want to retain the coredata values until there is another iCloud user logs into settings app. Thanks Vinoth
Posted
by vmvinoth.
Last updated
.