iCloud Support

Hi there,
any news about iCloud Support

my users flood me with requests so they can sync their data
between iPhone and iPad.

+1 if you like that

also an own AnsCa Cloud (AC) would be cool :slight_smile: as so Users could also
sync between iOS and Android

+2 if you like that :slight_smile:

chris
[import]uid: 4795 topic_id: 26118 reply_id: 326118[/import]

Moved to feature request. [import]uid: 52491 topic_id: 26118 reply_id: 105812[/import]

native.setSync(ā€œfileNameā€, { iCloudBackup = BOOL } )
native.getSync(ā€œfileNameā€, { key = ā€œiCloudBackupā€ } ) [import]uid: 13560 topic_id: 26118 reply_id: 105858[/import]

Brand new API page: http://developer.anscamobile.com/reference/index/nativegetsync :slight_smile:

(Note you will need the newest daily build.) [import]uid: 52491 topic_id: 26118 reply_id: 105978[/import]

wohhh great
so from now iCloud is supporter, right?
that would be great news!
im just on travel and cant test immediatly, therefore
my question :wink:
thx
chris [import]uid: 4795 topic_id: 26118 reply_id: 106048[/import]

http://blog.anscamobile.com/2012/05/per-file-icloud-backups-and-other-changes/ :slight_smile: That answers and clarifies some other points. [import]uid: 52491 topic_id: 26118 reply_id: 106150[/import]

one question… as i am on travel and can’t test as needed .

now i implemented that get sync and set sync option
for my database in the documents directory.

when i set set sync = true… does it mean it does backup to iCloud
and even more important does that mean it will download it to
other devices that use the same iCloud account?

than it would real syncing… otherwise i don’t see a real sense for
that feature as long the data is somewhere in the cloud and i could not access it.

please clarify.

thx
chris
[import]uid: 4795 topic_id: 26118 reply_id: 106287[/import]

hi, can i get an answer on that???

thx
chris
[import]uid: 4795 topic_id: 26118 reply_id: 107772[/import]

I’d like to know the same thing as Chris, but so far it seems like this new API is just to tell iCloud which files should backup. It cannot be used to actually sync your game save across multiple devices. Are there any plans for cross-device syncing via iCloud? [import]uid: 51654 topic_id: 26118 reply_id: 107778[/import]

so what is the prob.
when it makes a backup to the cloud… why does it not sync to the devices.
thought thats how iCloud works…

[import]uid: 4795 topic_id: 26118 reply_id: 107785[/import]

I’m pretty sure that there’s 2 different things for iCloud.

  1. iCloud Backup

  2. iCloud Game Sync

  3. This is just when iCloud backs up what you have in the documents folder (what the new Corona API supports). When you get a new device, you can ā€œrestore from backup via iCloudā€ which will restore your game save.

  4. This is for a user that has multiple devices. You can sync the save data so that the player can play on their iPad, and then continue right where they left off on their iPhone. This requires figuring out where the ā€œlatestā€ data is (iPad or iPhone) and making sure that there are no game sync conflicts (the user might be playing on their iPad, but they don’t have a Wifi connection). As far as I can tell, Corona does not support this iCloud Game Syncing.

Please correct me if I’m wrong; I’d be happy to find out that Corona does support number 2 :slight_smile: [import]uid: 51654 topic_id: 26118 reply_id: 107792[/import]

ok… thats till now the best explanation … thanks…
so backup… hmmm to test that I would have to bring one of my devices into factory setting mode.
…hmm don’t like to do that now…

and 2. game sync… yes thats what I am looking for…
hope Corona will support that soon… as its an essential feature that iOS does offer.

thx
chris
[import]uid: 4795 topic_id: 26118 reply_id: 107793[/import]

+1 request for full iCloud syncing from corona [import]uid: 52260 topic_id: 26118 reply_id: 114037[/import]

2 years on that…

is it such a huge development to implement that feature?

all users would benefit from it!

sarcastic on:

Ā  Ā  but maybe you are busy with a very important new

Ā  Ā new 3D super dupper flare reflection whatever feature

Ā  Ā that a few Devs ā€˜could’ like.

sarcastif off:
Ā 

guruk - we get surprisingly few requests for this and it is not a high priority right now. You could implement with Corona Enterprise if necessary.

hi david,

thanks for answering.

for sure i have some thoughts

  1. how many requests did u had to do ā€œcorona Cardsā€ and lots of the fancy GFX Stuff?

Ā  Ā  I guess it was all in your thought that it could be nice. THIS Feature would be really useful and lots of devs

Ā  Ā dont even know what they would do good for their users!

  1. is it really such a hugh project to implement a few parameters needed for that to register the Backup with iOS/Google?

please think about

greets

chris

Actually it’s a huge project and not a few simple parameters.Ā  Perhaps this can give some insight into what’s involved:

http://www.objc.io/issue-10/icloud-document-store.html

Corona uses Lua’s simple File I/O routines to create files in a cross platform way.Ā  In looking at the native code needed to do it, It doesn’t look that it’s not particularly hard for a single app.Ā  There are a lot of parts and it seems that depending on your data type there could be different ways to do this.Ā  It would be much harder to implement in a generic way that everyone could use.

Perhaps with the iOS 8/Yosemite push to do more with iCloud Apple may make this easier with their new CloudKit API.

Rob

thanks Rob,

and whats about google backup.

As i see its just around 3-4 parameters that would need to be set .Ā 

(something in the manifest(

and its NOT about SYNC, just that the data in the Documents folder come saved and when the user gets a new phone this folder is restored

greets

chris

I’d say that Sync is not an option. As soon as you start saving documents in the cloud, sync is mandatory.

Let say you have an app that stores data in the cloud. Your user has an iPhone and an iPad with the app installed. The user edits data on the iPhone. Later the user uses the iPad to edit data. What if there was no internet connection when the iPhone was used? How to determine which data is current? Sync is the only option.

It would be a different story if we could assume that a user only owns one device at any given time, but it’s not that simple.

i agree… syncing can by tricky,

but BACKUP as a standart feature is what kinda every user request.

They dont like to register Ā at any cloud or backup system extra.Ā 

Most Users even dont think about, right?

ONLY when they lost their device, broke it or change it, suddently they find out ā€œUPS, my data is goneā€

And then they write us, "hey, what a stupid app, when I got my new phone, all other apps got their data, only in ur app all data is gone.

I lost months of Information !!"

so … THATS a Feature I would say that would REALLY BENEFIT our all Users. NO?

Greets

Chris