Question:
As the title, can I use realm in Notification Service Extension ?When I receive a notification, I need to get some data from realm, then edit notification content before showing to user.
I do below in the Podfile
But it seems not working because it doesn’t use the same database and can not find the scope I’ve already created.
Answer:
Yes it works, you need to create anAppGroup
in order to share data between your app & the Extension.If you have better answer, please add a comment about this, thank you!