Introduce the ability to render the PWA App Icon through the private file system

Created on 4 October 2022, over 2 years ago
Updated 21 September 2023, over 1 year ago

Problem/Motivation

Currently, when having your file 'default_scheme' set to 'private', the following error will appear, when submitting the form:

The website encountered an unexpected error. Please try again later.
Error: Call to a member function basePath() on bool in Drupal\pwa\Form\ConfigurationForm->submitForm() (line 405 of modules/pwa/src/Form/ConfigurationForm.php).
Drupal\pwa\Form\ConfigurationForm->submitForm(Array, Object)
call_user_func_array(Array, Array) (Line: 114)

This is caused, because the settings to save the app icon is based on your default_scheme setting and the App Image can only be served through the public file system.

Steps to reproduce

Proposed resolution

Add the ability to serve the image through the private file system. This is a follow-up issue on 🐛 Defined App Image Icon isn't used Fixed , which should be solved first.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: won't fix

Version

2.0

Component

Code

Created by

🇺🇸United States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024