First of all, connman does have compat code to support NM state. It's enabled with -c switch which should be enabled when starting with the init.d script. You can manually check the status with this command:
I tried to reproduce with connman 0.53+dfsg-0ubuntu0.10.04.1~ind1 and firefox 3.6.3+nobinonly-0ubuntu4. When I started firefox, it correctly detected the states between online and offline. But I noticed that firefox didn't notice state changes while it was running, I was had to restart it or manually change the mode from firefox. I don't have access to NetworkManager right now, so I don't know how firefox works with that one.
First of all, connman does have compat code to support NM state. It's enabled with -c switch which should be enabled when starting with the init.d script. You can manually check the status with this command:
dbus-send --system --print-reply --dest= org.freedesktop .NetworkManager \ p/NetworkManage r org.freedesktop .NetworkManager .state
/org/freedeskto
The values are:
NM_STATE_UNKNOWN = 0 DISCONNECTED = 4
NM_STATE_ASLEEP = 1
NM_STATE_CONNECTING = 2
NM_STATE_CONNECTED = 3
NM_STATE_
So you should see 3 as a reply when connected.
I tried to reproduce with connman 0.53+dfsg- 0ubuntu0. 10.04.1~ ind1 and firefox 3.6.3+nobinonly -0ubuntu4. When I started firefox, it correctly detected the states between online and offline. But I noticed that firefox didn't notice state changes while it was running, I was had to restart it or manually change the mode from firefox. I don't have access to NetworkManager right now, so I don't know how firefox works with that one.