Hello :)
okay, that‘s interesting, thank you for the information :)
Maybe when you test it on another device it might work without performing that settings action. Furthermore you should completely delete and reinstall the application after changing the completionHandler method. Maybe you have done that already, otherwise you can try it. All in all there must be a way, because it has to work programmaticly.
Post
Replies
Boosts
Views
Activity
Hello :)
I think the completionHandler with the option .banner might be a problem. Banners disappear after a few seconds no matter if the application is running or not. I can't test it right now, but it might work with completionHandler([.alert, .badge, .sound]).
I had the same issue, the bug still exists. But you can go to "Signing & Capabilities" in Xcode. Uncheck the "CloudKit" button under the iCloud section, save the project and check the button again. Then choose your container again. That fixes the issue. Additionally make sure that the name of your model doesn't already exist in your container as a RecordType to prevent unexpected errors again.