in reply to Phonegap with ajax and Perl backend
Personally, I found PhoneGap to be a horrible experience.
Besides running Perl on Android, I'm currently looking at Progressive Web Apps and Service Workers to aggressively cache web pages on the client. If you can limit the communication to the server to very few instances or precacheable responses, you can create something that very much looks like a native application on Android. You don't get access to interesting Android services like the user address book or user calendar that way.
If you need some more fancy interaction, you will have to implement your backend two times. The "online" backend in Perl. This is what you already have. The "offline" backend in Javascript, this backend will be accessed by your service worker when the online backend is unreachable. That Javascript backend should behave like the online backend but store the interactions for later.
I'm not entirely convinced that this is less work or a better approach than porting a complete application to Java, but at least you get the "web front end" and "native application" from one codebase that way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Phonegap with ajax and Perl backend
by Anonymous Monk on May 11, 2017 at 15:41 UTC | |
by Corion (Patriarch) on May 11, 2017 at 16:14 UTC | |
by Anonymous Monk on May 12, 2017 at 01:42 UTC |