Cloud and Local Storage

RSS for tag

Store data locally or in the cloud.

Posts under Cloud and Local Storage tag

18 Posts
Sort by:
Post not yet marked as solved
0 Replies
654 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
by
Post not yet marked as solved
1 Replies
889 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
by
Post not yet marked as solved
0 Replies
825 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
Post not yet marked as solved
0 Replies
696 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
Post not yet marked as solved
0 Replies
612 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
by
Post not yet marked as solved
1 Replies
590 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
by
Post not yet marked as solved
0 Replies
508 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
by
Post not yet marked as solved
0 Replies
417 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
by
Post not yet marked as solved
0 Replies
428 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
Post not yet marked as solved
5 Replies
917 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.
Post marked as solved
2 Replies
387 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
by
Post not yet marked as solved
1 Replies
275 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
Post not yet marked as solved
2 Replies
397 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
Post marked as solved
1 Replies
405 Views
Hello everyone, I followed this (https://www.hackingwithswift.com/quick-start/swiftdata/how-to-sync-swiftdata-with-icloud) guide from Paul Hudson on how to sync swiftdata with iCloud. I tried it on my device directly and it worked exactly as I would expect. Now I tried the same version of the app on another device installed through TestFlight external tester group. It no longer works. When deleting the app, the alert reads "Deleting this app will also delete its data, but any documents or data will be stored in iCloud will not be deleted" so the app should have said something in iCloud. When looking in Settings -> Your Name -> iCloud -> Manage Account Storage, on the working device I can see around 300 KB saved in iCloud, on the other device my app is not listed. Both have a fast and working internet connection, almost fully charged, low data mode turned off, running 17.4.1, Background modes enabled, Mobile data enabled, more than enough unused iCloud storage and plenty of time to sync. I was streaming the logs from the Cloudkit dashboard but nothing appeared there. The data saved neither syncs to another device of the same apple id nor reappears after app removal. The model Container is initialized without any configuration, the only relationship is optional and every value has a default value. There is A LOT of log noise when launching the app and I am unable to get any meaningful information from that. I can only get the log from the device where it is working as expected. I have triple checked that it is exactly the same app version and no debug conditions anywhere. I have absolutely no idea what is causing this. Thanks for any help :)
Posted
by
Post not yet marked as solved
3 Replies
246 Views
We use UserDefaults in our app to identify if we already showed a particular UI to the user (so that it will not be shown to the user again). Our logic goes something like: if !UserDefaults.standard.alreadyShownToUser { showUI() UserDefaults.standard.alreadyShownToUser = true } But there are users who see this particular screen again when they open the app. The screen does not show up for a few days, and then suddenly, it shows up again. Our theory is that this might have something to do with iOS Prewarming. So we updated our code to add another check: if UIApplication.shared.isProtectedDataAvailable && !UserDefaults.standard.alreadyShownToUser However, it does NOT seem to work / mitigate the issue at all. We also added logs to check the value of UIApplication.shared.isProtectedDataAvailable and the value of the UserDefaults variable. We expected that if: UIApplication.shared.isProtectedDataAvailable is false, then the UserDefaults value should also be false. But in our logs, we can see that UIApplication.shared.isProtectedDataAvailable is false, but UserDefaults still returned true. Which led me to think that UserDefaults is not affected by Prewarming. Now, I'm back from the start. What's causing our UserDefaults to have different value? We also do not have anywhere else in the app that sets the value of UserDefaults.standard.alreadyShownToUser to false. The only time it should have that value is when the user installs the app for the first time. I appreciate any help that can lead me to fix this issue. Thank you!
Posted
by
Post not yet marked as solved
1 Replies
172 Views
Hello Everyone, This is regarding recent upgrade issue on my iPhone. I am still struggling to get access to my iCloud storage data for iMessages, Notes with password, Health related stats, etc. I would like to explain chronology of the entire event. There was a recent IOS 17.4.1 update came on April 07th, 2024. I clicked on the update but nothing happened then suddenly my phone passcode wasn’t working. I restarted my phone then the phone was not even accepting my face id. I went to the Apple store. Apple support team have requested me to reset (erase entire data) iPhone which I had already done on next day. I had no others options actually. My phone passcode was not working in reality due to iso update because I haven’t changed my passcode since more than a year. It is also not due to iPhone screen issue which apple team was saying to me initially. Unfortunately, my Apple ID credentials wasn’t working after phone reset so I had to put my Apple ID on recovery mode which took almost 15days to recover even though process is automated as per apple support team which they can’t reduce it. I understand that they are doing for privacy reason but who wants such privacy when even owner can’t access his own account for 15days. I offered them to verify my personal details such as email ID, phone number, passport number and any other details which they can use to expedite the process but they didn’t help on this. At end of the recovery (after 15days), they used same details i.e. my email ID and SMS on my registered number to verify. I don’t understand their logic but if they can take 2-3 business working days for same process then it makes sense to wait rather than 15days. After I regained access to my apple id, I have restored everything using my iCloud storage. I observed that few applications such as contacts, WhatsApp, etc. are restored properly but some of the applications such as iMessage, Notes (specifically locked notes), health data were not restored. iMessage are not synchronizing with iCloud storage when I tried to do it manually too in setting >> apple id>> iCloud >> show all >> messages in iCloud >> sync now. Nothing happens after clicking on it. Locked notes are still showing an error message “Can’t view Note. ‘This note can’t be viewed because encryption key wasn’t found in iCloud keychain. Resetting your end-to-end encrypted data can cause this’”. I have never used custom password to lock note instead I was using Face ID earlier to lock or unlock some of notes. All these things are happening because it is asking for old iPhone passcode to connect with iCloud storage while resetting my iPhone. I am trying to enter all the previous passcodes. a. When I entered correct passcode, then there is no error but still applications are not synchronizing with iCloud storage. b. When I enter incorrect passcodes (multiple passcodes but one at a time) then it gives an error “Verification failed”. It means it is detecting correct passcode as per above point. There is some issue with passcode synchronization with iCloud storage. I have opened a case with apple support team but meanwhile If any one of you had faced similar problem, then kindly suggest ways to me so I will regain access to some important personal information which are present in my iCloud storage. I would like to inform everyone that don’t rely completely on single brand or product. Take multiple backups may be on personal laptops, SSDs, etc. I learnt a lesson that even apple products, software & services are not reliable so think before buying costly products just for sake of brand name.
Posted
by
Post not yet marked as solved
0 Replies
102 Views
CoreData: Zone metadata is missing it's encoded share data but is marked for a mutation: <CKRecordZoneID: 0x600003f044e0; zoneName=com.apple.coredata.cloudkit.share.30BE5FAE-3FE0-4142-90C4-E78FFA90B2A2, ownerName=defaultOwner> - <decode: bad range for [%@] got [offs:312 len:1242 within:0]>
Posted
by