The script opens an always-on-top message inviting the user to add the application to the home screen. This is currently supported on iOS and Mobile Chrome. While other devices have the ability to bookmark any website to the home screen, only iOS and Mobile Chrome have a straightforward way to do it.
How does it look?
This is the test page, you should see it now.
There is also a live demo here which uses the default icon set via CSS:
- Upload the files to your forum directory from the 'upload' folder.
- Import xml file from the 'xml' folder.
- Configuration options can be set via the admin panel : Options > Add to Home Screen
Note: This add-on will use the image set in Style Properties: Header and Navigation > Facebook Open Graph Logo for the icon so if you have not set a custom image the default XenForo image will be used.
Why is the XenForo icon showing when I add my site to my home screen?
This add-on will use the image set in Style Properties: Header and Navigation > Facebook Open Graph Logo for the icon so if you have not set a custom image the default XenForo image will be used.
I turned on debug mode for testing but I still cannot see the message.
Debug mode will only disable some of the preliminary checks which means the message is shown on desktop browsers and unsupported devices as well.
For testing you will need to enable the 'addToHomescreen.removeSession()' option, refresh the page and then disable the 'addToHomescreen.removeSession()' again. This will clear your current session and the message will display the next refresh.
How can I include the browser icon in my custom message just like the default message?
In the custom message text use %icon
Can I change the style of the message pop-up?
Yes, you can edit the css in the template 'SV_addtoHomeScreenDefault.css'