IOS 8 extension using iCloud data

I have an application that uses Core Data with iCloud to sync data across devices.

Now I want to display some of this data using the iOS notification center widget. It is important that the notification center is updated even without launching the iCloud update application.

So, I thought this would only work for using the same iCloud save stack for extension.

I call the stack creation in the method - (id)initWithCoder:(NSCoder *)aDecoder .

The problem I ran into is that the extension reconnects every time one of them is removed from the Notification Center in iCloud, which would be nice, but after that a second opening of the Notification Center is required to see the current data that seems weird.

Does anyone have experience using iCloud? And is there a better estimate for creating managed objects that should not be reloaded overtime or is it just wrong for these types of extensions?

Edit: some of the discussions in the dev forum address the same issue, but there is no real solution for this. Therefore, I am starting this reward.

+5
source share
1 answer

I cannot use iCloud Core Data repositories with iOS8 extensions in accordance with the updates in this thread in devforums: https://devforums.apple.com/message/1051015#1051015

+1
source

Source: https://habr.com/ru/post/1201785/


All Articles