I added a SiriKit extension to my app, such that users are able to add items to my lists using Siri. Everything works well with the local Realm.
But when the app is logged in to the cloud,
SyncUser.current keeps returning
nil in the SiriKit extension. For the app it’s not
nil. I can restart it and it’s set. Because of the user being
nil in SiriKit, it will access the local Realm instead of the synced Realm.
How do I solve this? SiriKit should access the same state the user is seeing in the app.