Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCloud doesn't sync #155

Open
Giulioo opened this issue Sep 20, 2018 · 16 comments
Open

iCloud doesn't sync #155

Giulioo opened this issue Sep 20, 2018 · 16 comments

Comments

@Giulioo
Copy link

Giulioo commented Sep 20, 2018

When I launch the app, the database storage isn't synchronizing, but after some other launch, the database is synchronizing correctly.
I'm using iCloud storage, but it doesn't work correctly.
I've enabled iCloud in the capabilities of the project and I use Graph(cloud: "fancyName") to initialize the database and after graphDidPrepareCloudStorage I load all the data.

I didn't found any documentation for the iCloud support, where can I find it?

Any help, please?

@daniel-jonathan
Copy link
Member

@Giulioo Can you share your setup?

@Giulioo
Copy link
Author

Giulioo commented Sep 20, 2018

@DanielDahan I'm using Xcode 10, Swift 4.2 and testing on an iPhone 6 on iOS 12 (before on iOS 11)
In the iCloud capabilities is checked only iCloud Documents and it uses the default container, no red warning.

I initialize the database and set its delegate like this:
` database = Graph(cloud: "iCloudContainer", completion: { (success, error) in

        self.database.delegate = self
    }) `

and in the graphDidPrepareCloudStorage I call a function that makes a search to load all the preexisting data

@daniel-jonathan
Copy link
Member

@Giulioo Thank you for that information. @OrkhanAlikhanov and I will test Graph, and see if there are any changes necessary for iOS 12.

@Giulioo
Copy link
Author

Giulioo commented Sep 20, 2018

@DanielDahan Great, thank you!
It didn't work well also on iOS 11, maybe I have to configure something else?

@daniel-jonathan
Copy link
Member

@Giulioo Generally iCloud is very tricky, and not necessarily the best. I find it slow to update.

@Giulioo
Copy link
Author

Giulioo commented Sep 20, 2018

@DanielDahan Graph with iCloud worked on iOS 11 right? I couldn't find any documentation about how to implement it, so I don't know if I'm doing it right.
In the iCloud capabilities is only checked iCloud Documents, is it right?
Do I have to configure something on the iCloud dashboard for the container?

@daniel-jonathan
Copy link
Member

@Giulioo All should work, but let's move this chat to Slack. If you would like, please send your email and name to support@cosmicmind.com, and I can add you to our #opensource channel.

@Giulioo
Copy link
Author

Giulioo commented Sep 20, 2018

@DanielDahan Ok, I'll send the email

@daniel-jonathan
Copy link
Member

Thank you, I am closing this issue.

@giuliomignemi
Copy link

hi i have the exact same problem, how can i fix it?

@daniel-jonathan
Copy link
Member

@giuliomignemi can you share more details, and your setup code please? What are you testing on, which OS are you using... thank you!

@giuliomignemi
Copy link

giuliomignemi commented Nov 11, 2019 via email

@giuliomignemi
Copy link

I hope you can help me

@daniel-jonathan
Copy link
Member

@giuliomignemi thank you! I will have to look at this over the weekend. I reopened the issue for you.

@giuliomignemi
Copy link

thank you!

@giuliomignemi
Copy link

have some news?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants