Selection To Discourage

i'm trying to make my app start blocking/shielding and app according to the selection from a familyActivityPicker. the problem that i'm having is that MyModel object is always nil when i'm accessing it inside the app extension. (DeviceActivityMonitor).

can someone give me an example of the object he uses to get the applicationTokens in the app extension?

an explanation on how to transfer information between the app and the app extension is also welcome.

Container App and its extension are running almost separately so you can not share data on memory level. You need to save MyModel Data in User shared default and then need to fetch that data in your extension. You can use AppGroup to share data b/w Container app and its extension.

Selection To Discourage
 
 
Q