good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Phonegap with ajax and Perl backendby Corion (Patriarch) |
on May 11, 2017 at 13:28 UTC ( [id://1190059]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|