Let the visitors of your LaraClassifier / JobClass site install it on their phone or computer like an app: its own icon, its own window, and pages that still open without a connection. No app store is involved and nothing has to be built.
Installable
A name, an icon, colors and shortcuts of your own, on Android, iPhone, iPad, Windows, macOS and ChromeOS.
Install Prompt
A discreet box invites the visitors to install the app, when and how often you decide.
Offline Mode
The pages already opened are shown again without a connection, and an offline page covers the others.
Every Theme
Nothing to add to your theme, nothing changed in the application.
How It Works
- Once the add-on is turned on, every page of the website tells the browser that it is an app: its name, its icon, its colors and the page it starts on.
- Browsers that can install it (Chrome, Edge, Samsung Internet...) offer the installation, and the add-on shows its own install prompt. On iPhone and iPad, the prompt explains how to add the website to the home screen.
- A small script kept by the browser (a “service worker”) keeps the pages the visitor opens, with their images and styles, on the visitor's own device.
- Without a connection, these pages open as usual. A page that was never opened shows an offline page, which reloads by itself when the connection is back.
Requirements
- LaraClassifier / JobClass v19.2.0 or later
- PHP 8.3+
- A website served over HTTPS: browsers refuse to install a website, or to run its service worker, over plain HTTP. The settings page warns you when it is not the case.
- The image driver of the application (Imagick or GD), to draw the icons from the image you upload.
Installation
Step 1: Upload the add-on
Go to Admin panel → Extensions → Add-ons, click Upload add-on and drop the add-on's .zip file into the upload area (50 MB maximum).
The archive is extracted into extensions/addons/pwa/ and Progressive Web App (PWA) appears in the list, deactivated.
extensions/addons/pwa/ over FTP or SSH: its addon.json file must sit directly inside that folder.
Then open Admin panel → Extensions → Add-ons. The page scans extensions/addons/ every time it loads, so the add-on is listed straight away (the Sync button runs the same scan on demand).
Step 2: Activate the add-on
Click Activate on the Progressive Web App (PWA) card. It is a paid add-on, so a dialog asks for its purchase code, which is verified before anything else happens: an invalid code is rejected in the dialog and nothing is changed.
Once the code is accepted, activation runs in one pass: it registers the add-on's permissions and publishes its public files (its script and its default icons) to public/vendor/pwa/. The add-on creates no database table. Reload the page to see its new entry in the Add-ons section of the admin sidebar.
Step 3: Configure
Open Admin panel → PWA from the Add-ons section of the sidebar, turn on Enable the Progressive Web App (it is off by default), upload your app icon, set your colors and save: see Settings.
Purchase Code (License Key)
Progressive Web App (PWA) is sold as a separate product, so it has its own purchase code (license key), distinct from the purchase code of the main application and from the one of every other add-on. You are asked for it when you activate Progressive Web App (PWA) in Admin panel → Extensions → Add-ons.
Our products are sold on three platforms. The way you receive a purchase code depends on where you bought the product.
| Platform / Marketplace | How you get the purchase code | Where to find it again |
|---|---|---|
| bedigit.com Store In-site purchase (Shop) |
Generated automatically when the order is paid, then sent by email, either in its own license email, or inside the order confirmation email. | My Account → My Licenses on bedigit.com |
| Gumroad | Created as soon as Gumroad notifies us of the sale, then sent in a separate email, in addition to the Gumroad receipt. | The license email, your Gumroad Library, and My Account → My Licenses on bedigit.com |
| Envato Market CodeCanyon |
Issued by Envato, not by us, and never sent by email: you download it yourself from your Envato account. | Envato account → Downloads → License certificate & purchase code |
1. bedigit.com Store (in-site purchase)
- As soon as the order’s payment status becomes Paid, a license key is generated automatically for every licensed item in the order (one key per purchased unit: buying 3 units gives 3 distinct keys).
- It is emailed to the address used on the order, either in a dedicated license email or inside the order confirmation email. Check your inbox and your spam / junk folder.
- The key stays available in your account under My Account → My Licenses. Keys are masked in the list; open the license detail page to reveal and copy the full key, see the domains it is activated on, and deactivate a domain to free an activation slot.
- The matching invoice is under My Account → My Orders.
2. Gumroad
- A Gumroad purchase produces two separate emails: the Gumroad receipt (sent by Gumroad, giving access to the files) and a license key email (sent by bedigit.com) that contains your purchase code.
- The license key email is generated as soon as Gumroad notifies us of the sale, so it normally arrives within seconds of the payment. Here too, check your inbox and your spam / junk folder.
- When the Gumroad product uses Gumroad’s own license-key feature, the same key also appears in your Gumroad receipt and under Library → your purchase on gumroad.com.
- Use the same email address on bedigit.com as on Gumroad: your keys are then linked to your account automatically and listed under My Account → My Licenses, even if you register after the purchase. You can also add a Gumroad key manually from My Account → My Gumroad Licenses.
3. Envato Market (CodeCanyon)
- Envato purchase codes are issued and delivered by Envato Market, never emailed by us, so there is nothing to look for in your spam folder: you retrieve the code from your Envato account.
- Log in to your Envato / CodeCanyon account, open the Downloads page, find the item, and choose License certificate & purchase code from the Download dropdown. The code is written in that certificate.
- An Envato purchase code looks like
12345678-90ab-cdef-1234-567890abcdef(8-4-4-4-12 characters). It never changes, and renewing item support does not issue a new one. - Official Envato article: Where Is My Purchase Code?
Settings
The options are in Admin panel → PWA, one tab per subject.
| Tab | Options |
|---|---|
| General | The main switch. The page also tells you when the website is not served over HTTPS, or when a manifest.json file of your own takes over (see Troubleshooting). |
| App | The name, short name and description shown when installing (the site name and tagline when left empty), the app icon, and the Start page the installed app opens, e.g. /?source=pwa to tell these visits apart in your statistics. |
| Display | The window of the installed app (standalone app, minimal navigation bar, full screen or browser tab), the screen orientation, the theme color (browser bar, title bar), the background color (splash screen), and the shortcuts of the app icon: a long press or a right click offers the posting page, the search, the visitor's listings and messages. |
| Install prompt | Whether the prompt shows, after how many seconds on the site, how many days it stays away once dismissed, and whether iPhone and iPad visitors get the instructions. |
| Offline mode | Whether the visited pages, the images, and the styles, scripts and fonts are kept on the device, how many pages and images are kept (the oldest go first), and the paths you never want kept. |
App Icon
Upload one square PNG image of 512 x 512 pixels or more (192 x 192 at the very least). The add-on draws from it the icons each platform asks for:
- the standard icons (192 and 512 pixels), which keep the transparency of your image;
- the “maskable” icon Android crops to a circle or a rounded square: your image is placed in its safe zone, on the Background color;
- the icon of the iPhone and iPad home screen, on the background color too (iOS turns transparent pixels black).
Set the Background color to the background of your icon so these two look as one. Without an uploaded image, a default icon is used. Browsers keep an app's icon for a long time: an installed app may show the previous icon for some days after a change.
Install Prompt
The prompt is a small box at the bottom of the pages, in the colors of your theme and in the visitor's language. It never shows inside the installed app, and never on the admin panel.
- Android, Windows, macOS, ChromeOS (Chrome, Edge, Samsung Internet...): the Install button opens the browser's own installation dialog.
- iPhone and iPad: Safari cannot install an app in one tap, so the box explains how to use the Share button, then “Add to Home Screen”.
- Other browsers that cannot install a website show nothing.
With the prompt turned off, the visitors can still install the app from the menu of their browser.
Offline Mode
- Pages are always loaded from your website first, so the visitors see the current content. A copy is kept and only used when there is no connection.
- Images, styles, scripts and fonts are shown at once from the device, then refreshed in the background.
- Never kept: the account pages, the posting form, the login and registration pages, the admin panel, the API, and the paths you add in the settings. These always need a connection; without one, the offline page is shown.
- Forms and actions (messages, posting, payments) are never replayed or delayed: they need a connection.
Saving the settings, updating the add-on or updating the application makes the browsers drop what they kept and start again.
Custom Themes
No change is needed in a theme: the add-on adds its tags to the pages by itself, and leaves alone a tag the theme already has (a theme-color of its own, for instance).
A theme can show its own install button, in its header or its footer for example. Give any element the data-pwa-install-trigger and hidden attributes: the add-on shows it while the app can be installed, and starts the installation on click.
<button type="button" class="btn btn-primary" data-pwa-install-trigger hidden>Install the app</button>
Two events are sent on document: pwa:installable and pwa:installed.
Translations
The install prompt, the offline page, the shortcuts and the settings page are available in 37 languages, those of LaraClassifier and of JobClass. The name of the app and its shortcuts are in the language the visitor was browsing in when installing.
Privacy
The pages and files kept for the offline mode stay in the visitor's own browser: nothing is sent to a third party, and the add-on stores nothing about the visitors on your server. When a visitor logs in or out, the pages kept for the previous session are dropped.
Updating
An update only replaces the add-on's files. Its settings, its uploaded icon, its activation state and its recorded purchase code are all kept, so do not deactivate or remove the add-on before updating it. Back up your database first all the same.
Method 1: Upload the new version (recommended)
- Download the latest
.zipfile of the add-on. - Go to Admin panel → Extensions → Add-ons and click Upload add-on.
- Drop the
.zipfile into the upload area. - Because Progressive Web App (PWA) is already installed, a prompt shows the installed version and the new one. Click Replace: the
extensions/addons/pwa/folder is swapped for the new files. Cancelling the prompt discards the upload.
Method 2: Replace the files by hand
- Over FTP or SSH, delete the
extensions/addons/pwa/folder and upload the new one in its place. Replace the whole folder rather than copying over it, so files dropped by the new version do not linger. - Open Admin panel → Extensions → Add-ons: the page re-reads
addon.jsonand the card shows the new version number.
After the files are replaced
The add-on's public files (its script and its default icons) are published again by themselves the first time a page is loaded after the update. Your visitors' browsers then pick up the new service worker on their next visit and drop what the previous one kept.
If your installation caches its configuration or routes (php artisan config:cache, route:cache), run php artisan optimize:clear after the update.
Uninstallation
Switching the add-on off without losing anything is a deactivation: go to Admin panel → Extensions → Add-ons, click Deactivate on the Progressive Web App (PWA) card and confirm. To pause the PWA only, you can also simply turn off Enable the Progressive Web App in its settings.
- The add-on is no longer loaded: its routes, its admin sidebar entry and the tags it adds to the pages are gone.
- On their next visit, the browsers of your visitors remove the service worker and everything it kept. Apps already installed keep their icon, and open the website like a bookmark.
- Its settings and the uploaded icon are kept, and its files stay under
extensions/addons/pwa/. Nothing is deleted. - Its recorded purchase code stays in the database. Only Remove deletes it.
Click Activate on the same card to switch it back on. As for a first activation, the purchase code is asked for and verified again; then the add-on picks up exactly where it left off.
Removing
Removing is permanent. The Remove button only appears on a deactivated add-on, so removal is always two steps:
- Deactivate Progressive Web App (PWA) (see Uninstallation).
- Click Remove on its card and confirm the prompt.
The admin panel then, in one pass:
- runs the add-on's uninstall hook, which deletes its settings, the uploaded icon and the icons drawn from it;
- deletes its published files:
public/vendor/pwa/; - deletes the add-on directory
extensions/addons/pwa/; - deletes its row in the
addonstable (the recorded purchase code goes with it) and clears the application cache.
The add-on has no database table, so nothing else is stored. Installing it again later starts from its default settings and asks for the purchase code again.
Troubleshooting
The browser does not offer the installation
- Check that the website is served over HTTPS and that the option is turned on.
- Open
https://your-site/pwa/manifestandhttps://your-site/pwa/service-worker: both must answer. If they do not, a firewall or a CDN rule may be blocking the/pwa/paths. - The app may already be installed, or the visitor may have dismissed the prompt recently.
The name, colors or icon of the settings are not used
- If a
manifest.jsonfile exists in thepublicfolder of the application (added by hand in the past), the themes use that file instead: delete it. The settings page warns you about it. - After a change, an installed app is updated by the browser on its own schedule, which can take a few days. Reinstall it to see the change at once.
A page must never be shown from the device
- Add its path to Pages never kept offline in the Offline mode tab, one path per line.
The default icon is missing
- The add-on's files are published to
public/vendor/pwa/when it is activated. If that folder is missing, check thatpublic/vendor/is writable, then deactivate and activate the add-on again.