Wifi signal strength - iPod

150 views
Skip to first unread message

Lourdhuraju Periyathambi

unread,
Sep 19, 2013, 2:41:36 PM9/19/13
to rhom...@googlegroups.com
Is there a way to get the WIFI signal strength for iPod via Rho System API(Rhodes 3.5.1.12)?

Mikhail Malinin

unread,
Oct 31, 2013, 11:13:49 AM10/31/13
to rhom...@googlegroups.com
Is there a way to get the WIFI signal strength for iPod via Rho System API(Rhodes 3.5.1.12)?
 There are no official ways to get WiFi signal strength. Private API exists, but it could lead to ban on iTunes: http://stackoverflow.com/questions/12054818/ios-wifi-scan-signal-strength/12056009#12056009 

Dhruva Bhaskara

unread,
Dec 13, 2013, 3:41:15 AM12/13/13
to rhom...@googlegroups.com

I have created Rhodes extension which uses CTGetSignalStrength(). When we have created ipa file which includes the Rhodes extension that provides WIFI signal information code, the value which returned back from the above mentioned code is 0 and it is not returning the correct value back.

 

Code used:

 

int signalinformation_get_signal_strength() {

 

    void *libHandle = dlopen("/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony", RTLD_LAZY);

    int (*CTGetSignalStrength)();

    CTGetSignalStrength = dlsym(libHandle, "CTGetSignalStrength");

    if( CTGetSignalStrength == NULL) NSLog(@"Could not find CTGetSignalStrength");

    int result = CTGetSignalStrength();

    dlclose(libHandle);

    return result;

}

 

Is anything missing? Will it work for iPod also?

Reply all
Reply to author
Forward
0 new messages