QuickConnect wrote:
There are many apps on the store that use QuickConnect but since this is a free open source library I don't require anyone to report to me when they ship an app. Because of this I can't tell you how many of the thousands of developers and companies have included the use of the reachability functionality.
If you have any examples of Open Source apps built using QuickConnect that are in the store (whether they use Reachability or not) please share the links on this list... I'd love to see any examples of Open Source hybrid apps, whether they are using QuickConnect or not. If they use iUI, I'll be especially happy...
I can tell you that if your app has a web, GameKit, or Bonjour component of some type and it won't work without connectivity then Apple will reject it. You can either store data on the device to solve this problem or if the remote content is a minor portion of the app then you could just give the user some sort of 'you need to have internet access' message. I don't know your app so it is difficult to advise you on this point.
My app is fairly simple from the perspective of a hybrid app. It doesn't use any native services. It consists of a single index.html file and uses Ajax to load all data via the net. It works very well as a full-screen-mode, HTML5-cached webapp. The client, however, wants it in the Apple store. So I'm wrapping it in UIWebView in the simplest possible way. That's why I'm looking for something that is pure JavaScript (and not using neither PhoneGap or QuickConnect.)
A pure JavaScript solution should work the same whether wrapped in UIWebView or running from the HTML5 cache.
You can accomplish this same reachability check in JavaScript using the XMLHttpRequest object. To handle the timeout issue you would need to use a JavaScript timer to cancel your request if it goes overtime. The QC framework has a ServerAccessObject.js file in it that includes this code. Take a look at how it is done there. Just remember that the XMLHttpRequestObject should be used asynchronously so you may want to do this when your app startsup.
I looked at ServerAccessObject.js and it was helpful. At first look I thought it was standalone, but when looking closer I see it has dependencies on other QuickConnect files. Do those files (in turn) have dependencies on Objective-C? I may borrow the technique of adding a property to the XMLHttpRequest for the requestTimer. Thanks, Sean -- You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
