Skip to content

Commit

Permalink
Add debug script for NSDistributedNotificationCenter and MDM update
Browse files Browse the repository at this point in the history
  • Loading branch information
ygini committed Jul 6, 2016
1 parent e7e2a2f commit 14c9e27
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/sendFakeNotification.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/swift

import Foundation

let userInfo = ["com.apple.MCX.changedDomains": ["com.github.ygini.Hello-IT"]]

NSDistributedNotificationCenter.defaultCenter().postNotificationName("com.apple.MCX._managementStatusChangedForDomains", object: "com.apple.MCX", userInfo: userInfo)

exit(0)

0 comments on commit 14c9e27

Please sign in to comment.