Shared preferences between Host App and Network Extension

Hi


I want to share data between host app and network extension on macOS 10.15.5.


As per the document, Adding App group in entitlments and using containerURLForSecurityApplicationGroupIdentifier are entry points.


But containerURLForSecurityApplicationGroupIdentifier returns different locations. network extension returns "/var/root/Library/Group Containers/...". App returns ~/Library/Group Containers/..."

I think, the API's fundamental behavior is correct.


Could you please suggest how to share preferences between App Host and Network extension?


Regards,

Anand Choubey

Replies

I want to share data between host app and network extension on macOS 10.15.5.

I presume you’re building a sysex rather than an appex. If so, see:

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"