add-to-ios-homescreen

1.0.2 • Public • Published

Add to Homescreen call out

Script for mobile iOS devices, it automatically shows an overlaying message encouraging to add the web app to the homescreen. Compatible with iOS 6+.

Installation

Add addtohomescreen.css and addtohomescreen.js to the head of your projects index file. Then, call addToHomescreen(); as soon as possible. For example:

<head>
<title>Add To Home</title>
...
<link rel="stylesheet" type="text/css" href="../../style/addtohomescreen.css">
<script src="../../src/addtohomescreen.js"></script>
<script>
addToHomescreen();
</script>
</head>

For more, consult the original project's website.

Readme

Keywords

none

Package Sidebar

Install

npm i add-to-ios-homescreen

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • driesschulten