3 Replies Latest reply on Mar 3, 2012 8:42 AM by K2xL.com

    iOS native extension for networkinfo throws an error

    NilsTT Level 1



      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?