Create web app PWA manifest (closes #24) #34
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
luca0N/lanbassador!34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev_client_pwa"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create a simple Progressive Web App (PWA) for the web app. This
manifest uses the same icon used for `apple-touch-icon', but it has been
renamed, as that icon is no longer exclusively used for that purpose.
One caveat is that this pull request introduces a breaking change for those who would like to host this web app at a subpath of an already existing website (e.g.,
https://www.luca0n.com/lanbassador/instead of a dedicated subdomain), assuming this was even possible before (which I haven't tested). This issue is caused by thestart_urloption in the PWA manifest.Create web app PWA manifest (closes #24)to WIP: Create web app PWA manifest (closes #24)I've thought about having the instance name appended to the PWA name, so as to help users in telling instances apart. The thing is, I believe most users will only have a single instance, plus, since the PWA manifest is a static JSON file, achieving this would mean doing it in the server side.
Since the web app runs from static files (there's no npm server or PHP script that serves it), this would have to be done in the web server configuration (for the
lanbassador/clientDocker image, this would have to be achieved with Apache).Still, I think this is too much effort for such a niche combination.
The PWA seems to work well on Brave running on Linux. I would like to test this on mobile before merging this pull request.
WIP: Create web app PWA manifest (closes #24)to Create web app PWA manifest (closes #24)One thing to note is that all hyperlinks (as of now) will open on the user's web browser instead of the PWA, even though they are hosted on the same website. This is due to the use of
target="_blank"in the anchor tags.This is intended behavior, as changing the app page means losing the history of detected hosts (for now). Plus, it's not uncommon for native apps to open up the user's web browser that points to relevant legal documents (such as ToS, privacy policy, free software licenses, etc).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.