NetTalk Central

Author Topic: Mobile App that is NOT Disconnected  (Read 2881 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Mobile App that is NOT Disconnected
« 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

Jane

  • Sr. Member
  • ****
  • Posts: 372
  • Expert on nothing with opinions on everything.
    • View Profile
    • Email
Re: Mobile App that is NOT Disconnected
« Reply #1 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

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
« Last Edit: September 11, 2023, 06:09:33 PM by Jane »

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: Mobile App that is NOT Disconnected
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Mobile App that is NOT Disconnected
« Reply #3 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.