On Mar 15, 5:43 pm, Sean Gilligan <[email protected]> wrote:
> 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 don't have a link to an open soruce app that is in the store.  Most
developers that are putting their apps in the store are not releasing
their source.  The latest download of the 1.6 beta has 31 example apps
included.  Some of these examples are pure JavaScript and others use
the Objective-C layer.

There is one example using jQTouch but not iUI.  The jQTouch example
was supplied by a user of the QC framework.  I'd love to add an iUI
example app but I'm totally tied up getting the 1.6 release done.

>
> > 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.

Here is a URL to a posting on the QC development blog about a company
that was written in pure JavaScript.  It is a nurse scheduling app
that uses the Enterprise Data Synchronization feature of QC.

http://tetontech.wordpress.com/2010/03/01/quickconnect-used-by/



>
> > 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.

There is only one file that has a dependency on Objective-C code in
QuickConnect.  That file is the com.js file.  The dependency you are
seeing in the ServerAccessObject.js file is to the implementation of
the application controller pattern.  This dependency allows the AJAX
calls made in the SAO to appear to be synchronous to the developer
while they are really asynchronous.

Unlike PhoneGap, QuickConnect is a full, highly modular framework.
For QuickConnect this means that the developer can focus on
functionality and display rather than on the 'glue code' that we
usually have to write to associate functions, objects, etc.

You can borrow anything you would like from QC.  Take a look at the
BSD license at the top of the file.

>
> 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.

Reply via email to