5

I want to try using channel-API between my GAE app and the iphone. I'm not sure where to start... should I try it with UIWebView that runs a javascript?

Lior Frenkel
  • 806
  • 11
  • 25

4 Answers4

1

Well, it's possible on the iPhone. Of course, it should be on a different NSThread... and it's a nightmare to debug because of the bad access to JS from the iphone.

Lior Frenkel
  • 806
  • 11
  • 25
1

Have you considered using push notifications to tell the app to fetch the new data?

Jon Abrams
  • 2,171
  • 2
  • 14
  • 14
  • 1
    Yes I have, but then the idea fell. Push notifications are not real-time, and not reliable. I would only use them if I needed to fetch data on the background... – Lior Frenkel May 06 '11 at 05:17
0

A web view running the Channel API JS may work, but you probably want to use XMPP. See this article and try this project.

Jason Hall
  • 20,632
  • 4
  • 50
  • 57
  • XMPP is unlikely to be the solution, since it would require the user to have a Google account just for the app. – Nick Johnson Mar 07 '11 at 22:52
  • XMPP seems like a way to do that, but only if I have no other way... I need to update the App after an event happend on the server. the message sent to the App contains one tiny parameter. XMPP for doing that seems a bit too much (from server CPU/cost point of view) – Lior Frenkel Mar 07 '11 at 23:50
0

I think you must have some kind of app-in-the-middle native app that communicate with the channel's javascript