Hi Nekhelesh, Nice to hear that it helps you. To my best understanding, that is the limitation of the Connectivity API at https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Connectivity.NetworkingStatus/
It does not specify whether it is WiFi or not. In fact, I once raised a request for the purpose. You may refer to my blog in Chinese to get the full details of the API at: http://blog.csdn.net/UbuntuTouch/article/details/45022951 You may use google translate to translate it. Basically, you can use the command: qmlplugindump Ubuntu.Connectivity 1.0 to get all of the details. Best regards, XiaoGuo On Mon, Mar 21, 2016 at 9:36 AM, Nekhelesh Ramananthan < [email protected]> wrote: > Hi XiaoGuo, > > Thanks a lot for your code. It is very simple and self explanatory to go > through and understand. I was very excited to test it on my phone, since > for applications knowing whether you are on 3G or Wifi really helps them be > smart about their network usage. A common example, is a Podcast app > (Podbird) not automatically downloading new episodes if it detects users > are on 3G. Is this possible? Can we detect if the user is on 3G or Wifi? I > assumed that limitedBandwith would be the property for this case, but it > always shows "bandwidth not limited" regardless of whether I'm on 3G or > Wifi (tested on krillin & nexus4). > > If the Ubuntu.Connectivity developers are reading this email, please > provide an insight as to what "limitedBandwidth" is intended to cover. > > Cheers, > Nekhelesh > > On Mon, 21 Mar 2016 at 01:49 XiaoGuo Liu <[email protected]> > wrote: > >> Hi Dan, >> >> I am not sure whether my following code helps you or not: >> >> https://github.com/liu-xiao-guo/networkstatus >> >> Best regards, >> XiaoGuo >> >> On Sun, Mar 20, 2016 at 11:46 PM, Omer Akram <[email protected]> wrote: >> >>> Thanks Dan for the link, can you please point to a client implementation >>> of this API ? that will help a lot. >>> >>> On Sun, Mar 20, 2016 at 4:08 PM, Dan Chapman <[email protected]> wrote: >>> >>>> On Sunday, 20 March 2016 09:50:18 GMT, Omer Akram <[email protected]> >>>> wrote: >>>> >>>>> Hi! >>>>> >>>>> I am writing a very simple utility in which I need to check if a >>>>> network >>>>> connection is currently established or not. For example if wifi or data >>>>> connection is connected. At the same time I would also like to know if >>>>> I >>>>> can use a signal for change in network connectivity e.g. when wifi is >>>>> connected/disconnected or when data connection is >>>>> connected/disconnected. >>>>> >>>>> Right now I only care about the connection establishment and not really >>>>> about if there is internet connectivity. I can of course check that by >>>>> pinging a server >>>>> >>>>> Any code samples would help largely. >>>>> >>>>> Thanks! >>>>> >>>>> >>>> The Ubuntu.Connectivity api should provide what your looking for. Seems >>>> the docs haven't been updated on d.u.c with the recent changes, but you can >>>> see the available network properties here >>>> http://bazaar.launchpad.net/~indicator-applet-developers/indicator-network/trunk/view/head:/src/connectivity-api/connectivity-qt/connectivityqt/connectivity.h >>>> >>>> BR >>>> >>>> Dan >>>> >>>> >>>> -- >>>> Sent using Dekko from my Ubuntu device >>>> >>>> -- >>>> Mailing list: https://launchpad.net/~ubuntu-phone >>>> Post to : [email protected] >>>> Unsubscribe : https://launchpad.net/~ubuntu-phone >>>> More help : https://help.launchpad.net/ListHelp >>>> >>> >>> >>> -- >>> Mailing list: https://launchpad.net/~ubuntu-phone >>> Post to : [email protected] >>> Unsubscribe : https://launchpad.net/~ubuntu-phone >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> >> >> -- >> XiaoGuo, Liu (刘晓国) >> Mobile: +86-13911181302 >> -- >> Mailing list: https://launchpad.net/~ubuntu-phone >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~ubuntu-phone >> More help : https://help.launchpad.net/ListHelp >> > -- XiaoGuo, Liu (刘晓国) Mobile: +86-13911181302
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp

