Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I use notes daily and love it. ❤️
I tried many options for a front end on mobile phone, but I find that the web version is just right (a part of some small things, that I will try to fix later).
Motivation
The thing is that when you tap «Add to Home screen» in
chrome
it always saves theNextcloud
default app (i.e.files
) which is in the way when you're trying to quickly add some note.Solution
I've looked through the code that is responsible of adding the manifest file and found that there is a default app --
theming
that looks if theapps/<app>/img/manifest.json
file is available and adds it otherwise it generates its ownmanifest
in the ThemingDefaults.php file:but then the main
.htaccess
file is redirecting all the files to/
.So I decided to make a pull request there where I would allow apps to have their proper
manifest
files.Result
With changes to server and the
manifest.json
within this PR I get:And I'm able to save
Notes
app to desktop and access it quickly.P.S. I also created a
sandbox
to be able to quickly debug apps.