Mac OS X 10.x Network Service Notification - macos-high-sierra

Using Mac os x 10.13 the network preferences pane shows status of network services (eg Wi-Fi and/or Ethernet) being connected or not. If I change the service status, say by turning Wi-Fi off or on, or disconnecting/connecting ethernet cable then the Preferences Pane reflects this change immediately which implies that it is getting some notification of the network service changes.
How can I accomplish receiving these types of notifications in my Swift program?
I know that I can create a timer object to periodically check the status using the NetworkSetup app process commands and this works fine, but I wish to be notified when the changes occur.

never mind; it looks like this is do-able using the SystemConfiguration framework

Related

Bluetooth Low Energy device to trigger webservice call

I am looking for a software or easy to use library where I can connect to a BLE device (simple button, like key finder) that could trigger http request upon click.
I already have rest api available on my local network. I need to be able to call it from the device. It can be software for android or windows. Anyone has ideas?

Remote control feature for iOS devices in AirWatch

We use AirWatch as MDM solution. Is there a feature to help troubleshooting for iOS devices, like remote control? Something similar to Help#work in MobileIron.
If AirWatch doesn't support this: is there any other solution for iOS devices?
Whereas remote view using traditional AirPlay requires devices to be running the Bonjour service and cannot be easily retransmitted to different subnets, AirWatch remote view capabilities use the AirWatch Agent instead of Bonjour and can function over different subnets within the same network. If an end user calls with an issue, simply instruct them to start their AirWatch Agent application and then send a remote view request to view their screen.
--> You can only remote view the IOS device when the MDM agent is opened in the foreground. This is an Apple restriction and not an MDM limitation.
Source : https://my.air-watch.com/help/9.1/en/Content/Platform_Guides/iOS/C/Remote_View_Overview.htm
AirWatch has the Remote View feature which allows administrators to assist with troubleshooting by viewing an end user's iOS device from an AirPlay-enabled destination.
Supported destination are :
AirServer for both Mac OS X or Windows
X-Mirage for both Moc OS X or Windows
Reflector for Windows
Ports to configure :
7000 for video on Mac
7100 for video on Windows
5000 for audio on Mac and Windows
Requirements :
iOS 7 and higher devices to run the Remote View command
iOS 7 and higher Supervised devices to run the Stop Remote View command
AirWatch Agent v4.9.3 and higher
In your AirWatch Console, go the Details View page of your iOS device, click on More (the one next to Lock at the top of the page), then click on Remote View. You have to configure a destination before. If it's not done already, click on Add a destination on the 1st screen.
Complete documentation is available on my.air-watch.com under the current name "VMware AirWatch iOS Platform Guide". It's located in "Chapter 6: Additional iOS Configuration".

How to push/show notifications from the guest OS to the host OS in VMware player

I am wondering if there is any way to get VMware Player to blink or show a message in the window title or perform some similar notifying action whenever there is some activity inside the guest operating system.
I run a Windows VM on a Linux box. If I am working on the host OS and an email or IM or any notification appears on a window inside the Windows VM, there is no way for me to be notified of that in the host OS. I am wondering if there is any practical solution to this or if this is an intrinsic limitation of virtualization. Any thoughts? Thanks.
This is an intrinsic limitation of type 2 virtualization, if you're able to get out the virtual machine it means something went wrong in terms of security.
BUT, you can still solve your problem. Both the host and the VM are connected to the Internet (and sometimes connected on the same internal network). You have a common resource, so they can communicate. The easiest solution in your example is to use an external notification service like pushbullet (if you don't mind it to be hosted elsewhere) or pushjet (if you want to self host).

Mac to iPhone App Communication over WiFi

I am new to developing for the iPhone and would love some advice on an app i'm trying to develop.
Is it possible to send commands to an app on iOS 3.2 from OS X using AppleScript. The iOS app will display an image and run a small script when it recieves the appropriate command from the client software running on a Mac Mini. The devices would communicate over an a closed WiFi network.
Before I continue down this path does anyone have any advice on how to setup the communication (i.e. get the app to run in the background and listen on a designated port).
I don't know the full process but I know that various apps do this one way or another, such as 1password and desktop remote mouse apps. I think that CocoaAsyncSocket will help. An alternative to having the iOS app listening on a socket is to open a connection from iOS to OS X and then persist it. You can then send data either way through the connection.

GPRS on iPhone Simulator

I want to activate/enable GPRS on the iPhone programmatically. What are the APIs I can look into? There is no "Network" option in the settings application on the simulator so do I need to test out the application on the device itself?
Using the SDK, you can't "activate" any sort of network access. Simply try to connect to the remote server.
If the device can connect, it will. If it cannot, you need to detect this and display a warning to the user.
Apple's sample code has plenty of examples on how to detect if a network is active.
The Simulator always connects through the host Mac's internet connection. If you are asking how to test GPRS performance on the simulator then you should buy a USB GPRS radio and test rhrough that. You could also use the built in ipfw to throttle network bandwidth to the simulator and simulate GPRS bandwidth (note that latency would still be that of your hows connection). Throttled provides an easier UI than bare ipfw: http://www.intrarts.com/throttled.html
As August says, you can't switch the network on and off from code however, you can test the connection and suggest the user goes and switches on the connection.
There is good sample code from Apple for testing the connection availability and type: http://developer.apple.com/iphone/library/samplecode/Reachability/index.html