(My environment is iOS 8, IPhone 5S)
If you create a page using the tag
<meta name="apple-mobile-web-app-capable" content="yes" />
Then, using a download button (asp:Button) that adds a preview-able item such as PDF/Word Doc to the response - The web app will full screen preview the item, with no ability to go back to the web app.
byte[] bytes = this.Data;
HttpContext.Current.Response.Buffer = true;
HttpContext.Current.Response.Charset = "";
HttpContext.Current.Response.ContentType = this.MimeType;
HttpContext.Current.Response.AddHeader("content-disposition", "attachment;filename=" + this.FileName);
HttpContext.Current.Response.BinaryWrite(bytes);
HttpContext.Current.Response.Flush();
The user is then forced to hit the iPhone home button, and re-open the app. How may I make this force file download, or alternatively give any options at all to the user?
Edit - This works fine in android as long as android app was added to home screen via Chrome.