Syncing data files with iCloud or Device to Device
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Syncing data files with iCloud or Device to Device
Where can I go to find information concerning syncing small simple data files from mobile app with iCloud between devices?
Thanks,
David
Thanks,
David
Re: Syncing data files with iCloud or Device to Device
I suppose specialFolderPath("documents"). See http://livecode.wikia.com/wiki/IOS_filesystem
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Syncing data files with iCloud or Device to Device
MaxV,
Thanks for pointing me a a possible direction,
David
Thanks for pointing me a a possible direction,
David
Re: Syncing data files with iCloud or Device to Device
there is also the url way:
Code: Select all
put URL "binfile:/myfoldepath/myFile" into URL "iclouddriveapp://newfolderptah/myFile"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Syncing data files with iCloud or Device to Device
MaxV,
So far I have not been able to write and Read from iCloud.
Below is the script that I am using.
Any suggestions?
Thanks,
David
--------------------------------------------------------------------------------------------
-- Save Data to iCloud
---- write to local device
--- Write FileData to file Pill_Pal Allergy
put specialfolderpath("documents") & "/Pill_Pal_Contacts_Bin.txt" into tFile
put arrayEncode(tC) into url ("binfile:"& tFile)
answer "Writting to iCloud"
-- put URL "binfile:/myfoldepath/myFile" into URL "iclouddriveapp://newfolderptah/myFile"
---- Attempt to write to iCloud
put URL ("binfile:"& tFile) into URL "iclouddriveapp://newfolderptah/Pill_Pal_Contacts_Bin.txt"
---- Attempt to read from iCloud
put "iclouddriveapp://newfolderptah/Pill_Pal_Contacts_Bin.txt" into tFileCloud
answer "File Exist Test"
if there is a file url tFileCloud then ---- Reading file
answer "There is iCloud File"
end if
So far I have not been able to write and Read from iCloud.
Below is the script that I am using.
Any suggestions?
Thanks,
David
--------------------------------------------------------------------------------------------
-- Save Data to iCloud
---- write to local device
--- Write FileData to file Pill_Pal Allergy
put specialfolderpath("documents") & "/Pill_Pal_Contacts_Bin.txt" into tFile
put arrayEncode(tC) into url ("binfile:"& tFile)
answer "Writting to iCloud"
-- put URL "binfile:/myfoldepath/myFile" into URL "iclouddriveapp://newfolderptah/myFile"
---- Attempt to write to iCloud
put URL ("binfile:"& tFile) into URL "iclouddriveapp://newfolderptah/Pill_Pal_Contacts_Bin.txt"
---- Attempt to read from iCloud
put "iclouddriveapp://newfolderptah/Pill_Pal_Contacts_Bin.txt" into tFileCloud
answer "File Exist Test"
if there is a file url tFileCloud then ---- Reading file
answer "There is iCloud File"
end if
Re: Syncing data files with iCloud or Device to Device
try:
Code: Select all
launch URL "iclouddriveapp://newfolderptah/Pill_Pal_Contacts_Bin.txt"
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Syncing data files with iCloud or Device to Device
That does't work either