5 Feb 2011 10:48 AM #1
Connection strength assessment
I'm wondering whether any convention or "best practice" or even package of code has emerged for assessing connection strength in a Sencha Touch application running on a mobile device. Given local storage, a web application may now face the question, "Should I do this thing involving communication with a server right away, or should I add it to a queue in local storage of things to be done later, when this device has a stronger network connection?" I could make an ad hoc ping-like system of my own, but perhaps someone has already solved this problem nicely.
5 Feb 2011 7:06 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The only thing that the browser has is the flag if it's online or not. PhoneGap may have something but I haven't seen anything.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
12 Feb 2011 3:47 AM #3
Okay, then, I guess that's a "no." That surprises me a bit. Flaky connectivity is the bane of my mobile life. It seems to me web apps will have to get smart about communicating when the communicating is good and not when it's not in order to compete successfully against native apps.
Anyhow, I'll make my own system.
By cdonnellytx in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 3 Nov 2010, 10:03 AM
By Ms. Hoyhen in forum Ext GWT: Help & Discussion (1.x)Replies: 1Last Post: 8 Jan 2009, 11:23 AM
By menriquez in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 21 Dec 2007, 8:37 AM
By masa2 in forum Ext 1.x: BugsReplies: 0Last Post: 5 Mar 2007, 4:51 AM