Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-22-2011, 06:35 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default data plan monitoring

Hey all,

Does xcode have a way to determine your data plan usage. If not is there a way to record what you are downloading from the internet?

Thanks
Shades of Chaos is offline   Reply With Quote
Old 06-22-2011, 07:07 PM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

It's not up to Xcode. And no.
baja_yu is offline   Reply With Quote
Old 06-23-2011, 11:13 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default

But there are apps that keep track of your data usage. How do they do it?
Shades of Chaos is offline   Reply With Quote
Old 06-23-2011, 11:16 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

maybe they take infos from a webpage offered by the carrier
__________________
dany_dev is offline   Reply With Quote
Old 06-23-2011, 11:50 AM   #5 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default

I thought they might contact the provider but then they would have to contact every provider and know which on you are using.

I downloaded a free one to try it out. I am just using the wi-fi part of it because I only have an iPod. And just having the wi-fi on make the data usage go up. And when I go on youtube the data usage goes way up. Im just using local wi-fi. Could the app just be counting up as long as I have my wi-fi turned on and it doesn't actually know my data usage?
Shades of Chaos is offline   Reply With Quote
Old 06-23-2011, 12:10 PM   #6 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

There's always a chance I might be wrong, but what dany said sounds more plausible. Can you post a link to a few of those apps.
baja_yu is offline   Reply With Quote
Old 06-23-2011, 02:36 PM   #8 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

According to the reviews for dataman, its doesnt give accurate values.
smithdale87 is offline   Reply With Quote
Old 06-23-2011, 05:12 PM   #9 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default

But some of the other apps are said to be quite accurate.
Shades of Chaos is offline   Reply With Quote
Old 06-24-2011, 03:50 AM   #10 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

mmm.....this is what i found on dev forum apple.

Quote:
You can get per-interface statistics via a reasonably well-supported technique, namely, call get <x-man-page://3/getifaddrs> get the list of addresses on the system and then, for each AF_LINK address, cast the ifa_data field to a (const struct if_data *) and access the interface statistics from there.



There are two gotchas here:



o There's no good way to identity an interface as being the cellular data interface (or the Wi-Fi for that matter). You can hard-code BSD interface names (for example, "en0"), but that's not a great long-term plan.



o These statistics are all reset to zero on startup. While iPhone OS might track statistics across restarts, there's no public API to get that information.
__________________

Last edited by dany_dev; 06-24-2011 at 03:55 AM.
dany_dev is offline   Reply With Quote
Old 06-24-2011, 11:11 AM   #11 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default

Ya I saw that too and I was really hoping there was another way.
Shades of Chaos is offline   Reply With Quote
Old 06-24-2011, 11:16 AM   #12 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

i'm pretty sure that there aren't other ways...with public api
__________________
dany_dev is offline   Reply With Quote
Old 06-24-2011, 01:54 PM   #13 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 104
Shades of Chaos is on a distinguished road
Default

Im restricted to public api's.
Thanks for all the help guys.
Shades of Chaos is offline   Reply With Quote
Reply

Bookmarks

Tags
data, download, monitor, plan, usage

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 331
8 members and 323 guests
chemistry, Dnnake, iOS.Lover, lendo, leostc, Leslie80, pbart, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0