network.canDetectNetworkStatusChanges returns nil

Hello,

Something that used to work on our devices, seems not to anymore:

Even though I use the appropriate (in my opinion…) permissions on Android:

&nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="android.permission.INTERNET"/\> &nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="android.permission.ACCESS\_NETWORK\_STATE"/\> &nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="android.permission.READ\_PHONE\_STATE"/\> &nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="android.permission.ACCESS\_WIFI\_STATE"/\> &nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="android.permission.WRITE\_EXTERNAL\_STORAGE" /\> &nbsp; &nbsp; &nbsp; &nbsp;\<uses-permission android:name="com.android.vending.BILLING" /\>&nbsp;

network.canDetectNetworkStatusChanges still returns nil.

Test case:

print(network.canDetectNetworkStatusChanges)&nbsp;

Any thoughts/hints?

Thanks

Krystian

EDIT:

This happens on the daily build 2197 on Android devices.

Works ok on iOS and Simulator.

Hmm

just found it:

http://forums.coronalabs.com/topic/27940-best-method-for-detecting-an-internet-connection/

I’m not sure why I thought this works on Android.

Anyway… it still returns nil instead of false.

Hmm

just found it:

http://forums.coronalabs.com/topic/27940-best-method-for-detecting-an-internet-connection/

I’m not sure why I thought this works on Android.

Anyway… it still returns nil instead of false.