Hi,
I want to add the tvOS binary to my normal iOS binary of “Freeze! 2 - Brothers”.
Users will only have to buy the game once and then they can play on iPad, iPhone and Apple TV.
For this I will sync the game stats (levels done and level times) across iOS and tvOS versions.
Working so far:
- automatic sync of game stats between iOS devices, using iCloud KVS
- saving and loading of game stats in the tvOS version, using iCloud KVS
Everything is working beautifully (thanks guys for iCloud support!).
But now the problem:
The game stats between iOS and tvOS are not synced. And that’s the mystery.
I set everything up to share the stats correctly:
- I use the same iCloud account on all devices, iOS and tvOS - [checked]
- I use the same “iCloud Container” for the iOS and the tvOS App-IDs, both are using the container “iCloud.com.frozengun.freeze2” - [checked]
- both in the iOS and the tvOS version I load and save my table to the same variable “syncedSettingsFreeze2” like this: result = iCloud.get( “syncedSettingsFreeze2” ) - [checked]
I tested all the apps using the distribution ad hoc profiles using the correct Apple IDs with iCloud enabled (otherwise iCloud wouldn’t work for me at all).
In my opinion everything should work, because iCloud KVS IS working on both iOS and tvOS, and the exact same iCloud account and container and variable is used.
But still the game stats between iOS and tvOS are not shared, so they must be written in different places.
Did anyone made it work? Or is there a bug?
Best
Andreas