EddyVerbruggen / cordova-plugin-safariviewcontroller

:tiger: :elephant: :crocodile: Forget InAppBrowser for iOS - this is way better for displaying read-only web content in your PhoneGap app
MIT License
282 stars 144 forks source link

Request: Displaying locally stored files #144

Open orenagiv opened 5 years ago

orenagiv commented 5 years ago

Hi there,

Is there a plan (or maybe it's already possible) to load into the SVC a file that has been locally stored at the application-storage-directories (using cordova-plugin-file)?

Currently it seems the SVC only allows http(s):// And it refuses to view file URLs such as: http://localhost:123/... or cdvfile://...

For now, as a workaround, I found out that the plugin "cordova-open" works nicely (but note that the URI must be with the format of "file:///...") https://www.npmjs.com/package/cordova-open

If the SVC plugin could support internal storage URLs - that would be awesome.

Thanks! Oren