The latest PWA plugin 0.6.0 now has offline caching for theme assets, uploaded images, navigations and manifest for app icon as well, so this extension is no longer needed.
An extension to PWA to enable/activate add to homescreen
and offline reading
features of PWA.
Author: rtCamp
Tags: pwa Requires at least: 4.9 Tested up to: 5.7.1 License: GPLv2 or later Requires PHP: 5.4+
/assets/img/
directory. You can use this site to generate icons. (Example path for 512x512 size will be Add to Home Screen
popup for mobiles with custom icon setup in WP theme (your-theme/assets/img/icon-{width}x{height}.png)
.example.com/contact
and example.com/feedback
/contact
/feedback
/assets/img/icon-{width}x{height}.png
pathicon-192x192.png
.rt_pwa_extensions_app_icon_{height}_{width}
filteradd_filter( 'rt_pwa_extensions_app_icon_72_72', 'update_icon_src' );
/**
* Updates icon src.
*
* @return string
*/
function update_icon_src() {
return 'www.example.com/new-image.png';
}
wp_front_service_worker
hook to main service worker file?izooto=sw
to prevent conflicting it with main service worker.Before creating a new issue, do browse through the existing issues for resolution or upcoming fixes.
If you still need to log an issue, making sure to include as much detail as you can, including clear steps to reproduce your issue if possible.
Want to contribute a new feature? Start a conversation by logging an issue.
Once you're ready to send a pull request, please run through the following checklist:
Browse through the existing issues for anything related to what you want to work on. If you don't find any related issues, open a new one.
Fork this repository.
Create a branch from develop
for each issue you'd like to address and commit your changes.
Push the code changes from your local clone to your fork.
Open a pull request and that's it! We'll with feedback as soon as possible (Isn't collaboration a great thing? 😌)
Once your pull request has passed final code review and tests, it will be merged into develop
and be in the pipeline for the next release. Props to you! 🎉
rt_pwa_extensions_app_icon_{height}_{width}
filter to change app icon path.Add to Home Screen
popup for mobiles with custom icon setup in WP theme (<your-theme>/assets/img/icon-{width}x{height}.png'
../bin/install-wp-tests.sh <db-name> <db-user> <db-pass> [db-host] [wp-version] [skip-database-creation]
Execute phpunit
in terminal from repository to run all test cases.
Execute phpunit ./tests/inc/test-class.php
in terminal with file path to run specific tests.