swift - Local AngularJS application hosted in WKWebView -


i have hybrid application built using wkwebview. have gotten around loading local files issue, having trouble loading angularjs application local files. getting following error:

cross origin requests supported fro http.

with android able update setting on webview control allow file:// schemes. there similar missing in ios? or solution?

i using xcode 6.3 (6d570)

this known issue wkwebview in ios 8, , suspect that's why uiwebview remains undeprecated.

i haven't had time use betas yet, suggestion give latest xcode 7/ios 9 shot, , use new wkwebview api

- (wknavigation * _nullable)loadfileurl:(nsurl * _nonnull)url allowingreadaccesstourl:(nsurl * _nonnull)readaccessurl

which ideally let pull in other html files templates in readaccessurl provide.

please file bugs see in latest beta. apple way slow move on issues in wkwebview.

if need angular app work now, you'll need switch uiwebview, confirmed work angular-based webapps stored on device.


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -