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}); }
source share