Reputation: 11544
I have coded two servlet(using the channel api) on gae that could make a connection f.ex.: for a chat As UI I will use JqueryMobile.
My questions are:
I appreciate your answer!
Upvotes: 1
Views: 409
Reputation: 80340
Channels API relies on custom javascript that is downloaded from AppEngine when browser opens the page: see javascript docs.
This custom JS code can potentially change when GAE version changes, so you can not embed it into your PhoneGap application. Also it possibly relies on browser-specific features, which is hard to check because it's a closed piece of code and it's internals are not explained.
If you need async notification, I'd suggest you use native push technologies available on PhoneGap.
Upvotes: 1
Reputation: 15143
Read the Channel API documentation. It's all there.
You probably want to add an API to generate a new token in case your connection times out. You also need to handle reconnection from the client in case you get disconnected (ie a socketerror event)
Upvotes: 0