Now I don't see the issue with bundle id, but the keyboard doesn't receive automatic updates when the CloudKit database is changed remotely. If the keyboard writes any changes, they are immediately visible on other devices, but it doesn't work vice-versa. I mean sometimes it works, but then it stops.
What's even more interesting I discovered, that I can trigger the fetch by showing task manager (swiping bottom bar to see all aps) and going back to the app, the database is immediately fetched.