Hi,
I've noticed that VPN on demand has stopped working with iOS 10 or 10.1. To get it working again, I had to remove and reinstall the OpenVPN Connect app. Also
<key>redirect-gateway</key><string>def1 autolocal</string
has to be added to the mobileconfig file, otherwise it strangely won't connect automatically anymore.