Recently, in an enterprise informatization SOA project, one of the sub-projects is to make a mobile Office system (including Andriod version and iOS version) for customers, using jquery mobile+phonegap+html5. However, when the project is nearing acceptance, it is found that an attachment download and open feature is not available on iOS (Java implementation is used on andriod). Project acceptance is imminent, the customer is also very important to this function must be completed before acceptance. So it must be in the shortest possible time to allow users to use the premise of normal. I used the following methods:
window.open (sourceURL, "_system");
The end result is the ability to use your own browser to open Word, execl, PDF, and other files in your iphone, as well as to open files in different formats for apps you use.
This article is from "Angry snail" blog, reprint please contact the author!
Mobile development experience Sharing 1:ios application file download and open