Sean,

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.

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.

With respect to reachability it is a strongly suggested step if you
are using Bonjour, GameKit, or web content within your app.  If you
are not then there is no need.  All that is usually done for a
reachability check on the Objective-C side is to open an HTTP
connection to some stable URL like www.google.com or www.apple.com and
see if it fails or times out.  There are no standard Apple supplied
methods for reachability checking.

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.


Lee

On Mar 12, 10:34 am, Sean Gilligan <[email protected]> wrote:
> QuickConnect wrote:
> > The QuickConnectFamily framework has both JavaScript and Objective-C
> > for a reachability implementation that you could scalp.  You will find
> > it in the iPhone template.
>
> Thanks, for the response,  Lee.  I'll look into it.
>
> When you say both QuickConnect "has both JavaScript and Objective-C"
> does that mean both are required or is there a pure JavaScript
> solution?  Do you have any experience from submitting your own apps or
> anecdotes from other QuickConnect developers  about reachability issues
> in hybrid apps?
>
> Do you have any links (blog articles, etc) that might be helpful?
>
> Thanks, again,
>
> 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