NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: rjolda on September 11, 2023, 11:49:36 AM

Title: Mobile App that is NOT Disconnected
Post by: rjolda on September 11, 2023, 11:49:36 AM
Hi Bruce,
You mentioned that a Mobile APP ( PWA ) would run clarion code if it was connected all the time.  I am making a PWA which will run ONLY if connected. 
1. Do I need a sync server in that case - seems like I wouldn't?
2. The PWA would run only if connected - therefore it seems logical to test for connection and run if there is one. If no connection, display a message that the app will run only when connected to the internet.
Can you help with information to sort this out please.
Thanks,
Ron
Title: Re: Mobile App that is NOT Disconnected
Post by: Jane on September 11, 2023, 12:53:39 PM
Hi, Ron,

If it only runs when connected, one option would be a plain web-app with CSS focused on usability on a mobile screen.  Use big buttons, only needed functionality, etc.  By definition, that would only work when connected.

As for a PWA, you might find it valuable to spend an hour or two working through some of the MDN tutorials.
This is Creating your first PWA (https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Tutorials/CycleTracker)

And this page is the basic everything-you-ever-wanted-to-know page: https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps

Cheers,

Jane

*edited to fix link
Title: Re: Mobile App that is NOT Disconnected
Post by: rjolda on September 11, 2023, 03:23:17 PM
Jane,
The thing I want is the look and feel of an installed App on the mobile phone.
Thanks for the tutorials.  These look like a great place to start.
Ron
Title: Re: Mobile App that is NOT Disconnected
Post by: Bruce on September 13, 2023, 02:32:35 AM
good questions Ron.
#1 - correct, no Sync server required.
#2 - would be done inside the service worker. I'll take a look at that sometime after I get home for a future build.

I should also make an example of this.