The Save Image menu has disappeared from iOS6 web applications.

When updating iOS6, the Save Image popup menu now disappears when users are on a website that supports apple-mobile-web-app-able . This is really important for my site http://2048px.com .

We want users to be able to add the site to their home screen. The way users get new wallpapers is to click on the download button and then use the “Save Image” menu to save it to the camera roll. But, as I said, in iOS6 the “Save Image” option seems to disappear when using webapp.

Does anyone know some kind of magical meta tag to enable this again? Or maybe a fancy way to save the image on a camera roll directly.

+2
source share
1 answer

Until I found a solution to return the save image button, I found a solution. I noticed that if I opened the link in a new tab and the link URL was an external domain, the link will open in Safari instead of webapp. On my site, all of my upload image is now hosted in an external domain on S3. Then I create download links in a new tab only if the website is in webapp mode. I am doing this with the following code.

if (window.navigator.standalone) { $('a.download').attr({target:'_blank',href:orig_download}); } 
0
source

Source: https://habr.com/ru/post/1415046/


All Articles