Add to Home Screen a Website on Mobile Step By Step

Here this blog all about how to add to home screen a icon of a website on your mobile. Now this kind of features are trending. user don’t want to search your favorite website in google  again and again. Many of the developers are  need this type of functionality. Here I will explain you very simple which you can do within 2 min of work. only 3 simple step you can implement this functionality in your website.



Step-1:

Index.php

Step-2:

Add manifest.json files in your root folder of the project.

Step-3:

Now final step you need to add sw.js in your root folder.

create a sw.js file and place this single line of code.



Note: Image file and size must be same as manifest.json else it will show error.

You can download all zip file by   click here

If you have any doubt, please comment / contact us so that we can help you out.



 

Tags: