Provides the ability to easily add a custom Add To Home Screen button with minimal markup for your Gatsby Progressive Web Application.
Formerly, gatsby-plugin-a2hs
gatsby-plugin-manifest
gatsby-plugin-offline
npm i gatsby-plugin-pwainstall
// In your gatsby-config.js
plugins['gatsby-plugin-pwainstall']
suspend
How many days to suspend presentation following install dismissal. (default: 2)
acceptedUri
Page to redirect if install is accepted.
dismmissedUri
Page to redirect if install is dismissed.
import AddToHomeScreen from 'gatsby-plugin-pwainstall'
export default (props) => {
return (
<div>
<AddToHomeScreen suspend='2' acceptedUri='/' dismmissedUri='/'>
Install Our App
</AddToHomeScreen>
</div>
)
}
If this plugin was useful to you, 🍕 pizza & ☕ coffee donations are welcome.