There's no way to programmatically trigger iOS to Sync with iCloud. You'll need to wait for iOS to sync the files from iCloud to the local container. But the file is not showing up in the gatherFiles result.Ī: The API only queries files that's been synced to the iCloud container, which lives in the local device. I signed in to device B using the same iCloud account. But the file is not showing up in the gatherFiles result.Ī: From the menu 'Features' click 'Tigger iCloud Sync'. I signed in to a simulator using the same iCloud account. startDownload has been renamed to download.startUpload has been renamed to upload.gatherFiles has been renamed to gather.All methods in version 2 have been changed to static methods.Instead, you'll need to specifiy the iCloudContainerId in each method. Therefore, ICloudStorage.getInstance('iCloudContainerId') is no longer needed. Version 2 supports operations on multiple containers.Files in other locations can be enabled from XCode. API Usage # Gather files from iCloud # final fileList = await ICloudStorage.gather(įilesUpdateSub = stream.listen((updatedFileList) ). Refer to the How to set up iCloud Container and enable the capability section for more detailed instructions. Enabled iCloud capability and assigned iCloud Container ID for the App ID.Created an App ID and iCloud Container ID.The following setups are needed in order to use this plugin: If you need to do backup and download outside the forementioned scenarios, this plugin could help. The data can be recovered when user sets up a new device or resets an existing device. Introduction #ĭocuments and other data that is user-generated and stored in the /Documents directory can be automatically backed up by iCloud on iOS devices, if the iCloud Backup setting is turned on. A flutter plugin for upload, download and manage files in the app's iCloud container.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |