Changes at "Add to Home Screen"
Body (English)
-
+
Ref. PWA06
NOTE: this feature is from a big development. See PWA discussion at GitHub.
Is your feature request related to a problem? Please describe.
As a participant, I want to have faster access to the platform from my mobile phone.Describe the solution youād like
To easily have a possibility to add Decidim to my home screen. This is feature is called Add To Home Screen (A2HS).Itās fundamental that we donāt spam the visitors with āThis website wants to add to your screenā, as we donāt want to be that kind of website. The user has to opt-in to having this pop-up, so we donāt show too many pop-ups in the first visit: imagine visiting a Decidim installation the first time, and seeing the Omnipresent banner, and the cookie fixed banner and the A2HS fixed native banner⦠Just too many banners at once.
With this problem in mind, the solution would consist in:
- In the browsers that support A2HS, show a link in the footer with āAdd $THIS_ORGANIZATION to your Home Screenā.
- A participant would see the A2HS action after more than 3 visits to the website with the same browser.
Describe alternatives youāve considered
One possibility would be to not have this feature as we have at the moment, but that means that participants need to remember the URL or get in through an email or notification. Itās more comfortable to have an Icon if itās possible.We also discussed and discarded having a banner that says āWant to have easier access to ORGANIZATION_NAME?ā with a button āAdd it to your Home Screenā, but we think that could take too much space.
Additional context
See MDN webdocs A2HS page.
See Can I Use āAdd to home screen (A2HS)ā?.
See provide your own in-app install experience for how implementing the A2HS link.Does this issue could impact on users private data?
No, itās a shortcut for improving access.Acceptance criteria
- Given that Iām a visitor and Iām visiting with a compatible browser
When I go to a Decidim instance I have a link in the footer that says āAdd $THIS_ORGANIZATION to your Home Screenā
and when I click the button
Then I see the āAdd to Home Screenā confirmation banner
and When I click it then I have an App icon on my Home Screen - Given that Iām a visitor and Iām visiting with an incompatible browser
When I go to a Decidim instance I donāt have a link in the footer that says āAdd $THIS_ORGANIZATION to your Home Screenā - Given that Iām a visitor and Iām visiting with a compatible browser
When I go to Decidim and visit 3 pages
Then I see the āAdd to Home Screenā confirmation banner
and When I click it then I have an App icon on my Home Screen
Title (English)
- +Add to Home Screen