I want get notifire or any type of observer in my app when any other app installed or removed in same device(iPhone/ipad) using MDM.
Just like Outpact app
I just try it in device which has MDM certificated Installed. But getting Nil response
let managedConf = UserDefaults.standard.object(forKey: "com.apple.configuration.managed") as? [String:Any?]
Output : nil
I also try NotificationDidChange but it is also not working
NotificationCenter.default.addObserver(forName: UserDefaults.didChangeNotification, object: nil, queue: OperationQueue.main, using: { note in
print(note.object)
})
Also checked this Using MDM To Configure An Enterprise App Via NSUserDefaults but not getting result
Please help me or suggestion any idea about it.
Thanks