Fomin Andres Posted February 5 Posted February 5 Hi! Please tell me how to add the apple-touch-icon icon to the application so that it is added to the iOS desktop. I add an icon in the Favicon Property to the client side and it only works on the android desktop, but for ios I need to add an apple-touch-icon.png
Hayri ASLAN Posted February 5 Posted February 5 6 hours ago, Fomin Andres said: Hi! Please tell me how to add the apple-touch-icon icon to the application so that it is added to the iOS desktop. I add an icon in the Favicon Property to the client side and it only works on the android desktop, but for ios I need to add an apple-touch-icon.png Hi, For iOS, just setting the Favicon property won’t work because iOS requires a special apple-touch-icon. Put your icon in the "files" folder of your UniGUI app and name it apple-touch-icon.png. Add the file to ServerModule.CustomFiles so UniGUI serves it: files/apple-touch-icon.png Add this line in ServerModule.CustomMeta: <link rel="apple-touch-icon" sizes="180x180" href="files/apple-touch-icon.png"> Make sure your app runs over HTTPS, or iOS won’t allow adding it to the home screen properly. After doing this, open your app in Safari on an iPhone, tap Share → Add to Home Screen, and your icon should show up. 1
Recommended Posts