I'm trying to check wether the active connection on a device is Wifi or mobile data connection. On android this works fine but on iOS there is a problem.
A native extension exists for this see here.
The problem is that the line below throws an error: 'Error #1009: Cannot access a property or method of a null object reference.'
var interfaces:Vector.<com.adobe.nativeExtensions.Networkinfo.NetworkInterface> = com.adobe.nativeExtensions.Networkinfo.NetworkInfo.networkInfo.findInterfaces();
I'm using AIR3.1 (no idea if this works on 3.0).
Anybody a solution?
Ever solve this? I'm also getting errors...
ArgumentError: Error #3500: The extension context does not have a method with the name getInterfaces.
I solved it by upgrading to Flashbuilder 4.6 (was using 4.5)
Hmm.. I'm already on FB 4.6... Strange... Simply the call to findInterfaces() crashes