cubiq / add-to-homescreen

Add to home screen call-out for mobile devices
http://cubiq.org/add-to-home-screen
2.29k stars 747 forks source link

required support #279

Open ksujitha18 opened 6 years ago

ksujitha18 commented 6 years ago

I want to show the Add to home screen popup for first 3 times when the user hit my website. How can I manage the time and maxcount.

JoeBerkley commented 6 years ago

You'll want to pass options to where you are calling your addToHomscreen(); I believe the below will cover what you want.


addToHomescreen({
   skipFirstVisit: false,
   maxDisplayCount: 3
});```