File System Access for iPhone Mobile Safari

Is it possible to write to a file in the application for the iPhone iPhone and view the Safari browser from this file after opening the browser from its own application?

Alternatively (and that would be great!), Is it possible to launch the mobile Safari Webapp from the native iPhone application and force this application to access the external infrastructure of external OS 3.0 devices? My guess is not ...

Basically, I have a working iPhone application that wraps the simple mobile Safari Webapp, but I would like to use the external accessory infrastructure as soon as I launched Safari webapp from the iPhone application ...

+3
source share
2 answers

There are 2 different interpretations. If you want to run MobileSafari from your application, there will be no answers , since MobileSafari and your application are isolated by isolated descriptors. But you can specify the details in the url like

  • http://example.com?info=SXMgaXQgcG9zc2libGUgdG8gd3JpdGUgdG8gYSBma…

But you can embed UIWebView in your application, then the answers will be yes (in UIWebView), since you can communicate with the web view with any ObjC code.

+1
source

You can use the phonegap framework: it provides a project template and libraries for accessing a built-in function in javascript (for example, writing / reading a file).

Consider also localstorage and SQLLite DB ...

+2
source

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


All Articles