Advertisement:

Author Topic: "Add to Home screen" Script for Mobile Sites  (Read 1604 times)

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
"Add to Home screen" Script for Mobile Sites
« on: November 16, 2018, 01:37:32 AM »
Has anyone successfully managed to add the "Add ______ to Home screen" prompt when using the website on mobile?

Websites are starting to behave more like apps these days, and I've seen this popup several times on different sites using Chrome (on Android).

I tried adding a manifest.json information via the link: https://biology-forums.com/favicons/manifest.json though it doesn't seem to work.

Offline shinglis

  • Semi-Newbie
  • *
  • Posts: 59
    • Somersetroadend
Re: "Add to Home screen" Script for Mobile Sites
« Reply #1 on: November 16, 2018, 03:50:55 AM »
Not yet.. asked similar question earlier (https://www.simplemachines.org/community/index.php?topic=562811.msg3992892#msg3992892)

Be interested to know if anyone has a solution for this.

Offline SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,421
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: "Add to Home screen" Script for Mobile Sites
« Reply #2 on: November 16, 2018, 05:52:01 AM »
Reading through this, It seems simple to do with chrome, idk about other browsers, they're probably similar though
https://developers.google.com/web/fundamentals/app-install-banners/

Also It doesn't just create an app for mobile, but also for desktop

Imazighen

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,656
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: "Add to Home screen" Script for Mobile Sites
« Reply #3 on: November 29, 2018, 10:16:27 AM »
Are you currently working on this project?

Offline SychO

  • Lead Customizer
  • SMF Hero
  • *
  • Posts: 1,421
  • Gender: Male
    • SychO9 on GitHub
    • SychO
Re: "Add to Home screen" Script for Mobile Sites
« Reply #4 on: November 29, 2018, 11:32:57 AM »
Not really, haven't had the chance to try this yet.

Imazighen