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:
- How to integrate the actions of the servlets into phonegap?
- Should I use any additional libaries or is it possible via action=”…\servlet”(RESTful communication).
- Is there any best practice?
I appreciate your answer!
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.