cool new avfp mobile app demo

Topics: Developer Forum, Project Management Forum, User Forum
Coordinator
Dec 18, 2014 at 3:51 PM
Edited Dec 19, 2014 at 9:20 AM
Load this URL in your Android, iphone or any mobile device (you can also bookmark it and add it to the mobile desktop like any other app):

http://www.noiqs.com/sws_avfp/tjqm/restopos

PW is 9

VFP app logic and data in a VFP Controller
jQuery Mobile on the front end

Loads very fast!

This is a (VFP desktop converted) Point Of Sale mobile app that a server in a restaurant uses to take orders on an iPhone or iPad (or any mobile device since it's jQuery Mobile). This app will run on the local restaurant network instead of over the internet. (the demo is running at Arvixe, though, over the internet)

Kudos to Victor for a great job on this!

Image
(* Restopos App between Newstand and Email)
Coordinator
Dec 19, 2014 at 2:08 AM
Edited Dec 20, 2014 at 1:16 AM
Thanks Claude.

To add to what you already said:
  1. Views are implemented using a master layout page
  2. Data send and returned from REST controller is handled as JSON data, using a new fast-integrated-100% VFP-JSON parser.
  3. App level code and configuration is handled by a delegate object instead of the traditional main.prg
Regards

Victor
Dec 19, 2014 at 9:39 AM
pw login (using 9) does not work for me on Android tablet
Coordinator
Dec 19, 2014 at 10:10 AM
http://android-emulator.org/

works there in the android emulator.
Coordinator
Dec 19, 2014 at 4:20 PM
Edited Dec 19, 2014 at 4:25 PM
claudefox wrote:
http://android-emulator.org/

works there in the android emulator.
Tried it there but doesn't work with password as 9. It does work on an actual device though (Nexus5).
<img src="http://qrfree.kaywa.com/?l=1&s=8&d=http%3A%2F%2Fwww.noiqs.com%2Fsws_avfp%2Ftjqm%2Frestopos" alt="QRCode"/> Very nice app indeed.
Coordinator
Dec 19, 2014 at 5:42 PM
really - I tried again and it works with PW of 9! What browser are you using? - I'm using Chrome
Coordinator
Dec 19, 2014 at 6:51 PM
Edited Dec 19, 2014 at 6:52 PM
I tested the site in the following environments:
  1. OSX + Chrome: Works
  2. OSX + Safari: Works
  3. Windows + Chrome: Works
  4. Windows + IE9: ERROR
  5. Ubuntu + Chrome: Works
So, the problem seems to be IE. Shocking!! LOL

Victor
Coordinator
Dec 19, 2014 at 7:09 PM
Edited Dec 19, 2014 at 7:11 PM
Firefox is a no go too apparently.

Chrome browser works and Apple mobile devices work. It'd be nice to know what Android devices (model name) specifically are having a problem. (though this is not required for this specific application which targeted apple mobile)

We'll have a demo similar to this for everybody in the next version release of AVFP. jQuery Mobile out of the box will work on all of these devices, so they say.
Coordinator
Dec 19, 2014 at 7:31 PM
claudefox wrote:
really - I tried again and it works with PW of 9! What browser are you using? - I'm using Chrome
I'm using FireFox 34.0 and yeah, it's not working for this browser. Tried IE 11 and it's working fine.
Coordinator
Dec 19, 2014 at 10:47 PM
I think this is the single most exhausting issue on Web programming: different HTML, CSS & JS implementations across browsers.
Dec 20, 2014 at 5:33 AM
I've tried:
Firefox on win7 - fail
Chrome on Win7 - fail
Chrome on Android - fail (generic Chinese tablet KitKat 4.4)
IE 11 on Win7 - works!
Developer
Dec 30, 2014 at 5:31 AM
Great Apps Victor.

I did take a peek at JS files. Very clean written and well documented code. It was good learning fr me. Thx.

For my part. I tried testing it and my findings are as follows. Sorry did not test in detail.
If its development version of the apps, then you can ignore the first two points.

1) Typed url
http://www.noiqs.com/sws_avfp/tjqmp

This gives a detailed error msg.. with intimate details of AVFP internals.

2) Typed url
http://www.noiqs.com/sws_avfp/tjqm/error

This I think, is designed to show the error page configured in web.config but it says

User thrown error....

3) In most cases, making a typing error in URL resulted in blank screen.
I was expecting 404 or home page


4) Tested on Win7, IE, safari for windows, chrome, opera

On galaxyS4/chrome, it works just fine.. but..
Hit one "Aw Snap" when using phones ( and 'not' the apps) 'back' button.

on iPad/safari..
slider on seat confirmation popup was frozen
Coordinator
Dec 30, 2014 at 4:37 PM
Thanks Titu1. I definitely has to check the normal http request handler fallout to show the appropriate page when an invalid URL is passed. I think this works ok on the normal AVFP install, but since I made a mayor rewriting on ProxyStub I think I broke something somewhere. Thanks for pointing it out.

Regarding RestoPOS, as Claude said before, the project specifications only required iOS compatibility, so we didn't any extensive tests on other platforms. But this is for sure one of the main concerns when you are writing web apps that should run in different devices and brands.

Victor
Developer
Dec 30, 2014 at 9:46 PM
Hi victor,

One more error that I was not able to handle. U seem to have it too.

Type
http://www.noiqs.com/sws_avfp/tjqm/restopos>
This throws yellow screen of death... Potentially dangerous Request.Path value was detected from the client (......

Seems v need to create & modify global.asax to handle this in friendly way.. but I haven't been able to get it working. Modifying web.config to ignore this may open a security hole since then, I would need to parse each URL in avfp.

If u have any global.asax solution.. I would be very grateful. Thx.
Coordinator
Dec 31, 2014 at 4:40 PM
found this to screen error in web.config:

<system.web>
<httpRuntime requestPathInvalidCharacters="&lt;,&gt;,%,&amp;,:,\,?" />
</system.web>

http://stackoverflow.com/questions/5967103/a-potentially-dangerous-request-path-value-was-detected-from-the-client
Coordinator
Dec 31, 2014 at 6:35 PM
Excellent!!
Developer
Dec 31, 2014 at 9:03 PM
yep thats what I used.. the only problem is the one I mentioned above.
But it may be just me.. due to my specific design requirements.
Developer
Feb 5, 2015 at 8:29 PM
Have you tried google page speed tests?. I had a lot of fun with it. For ppl using JQuery it is more challenge than ordinary.
Coordinator
Feb 6, 2015 at 2:28 PM
That page is AMAZING!! Thanks a lot for sharing it with us!!

Victor