1.0.2 • Published 6 years ago
add-to-ios-homescreen v1.0.2
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.