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
Post a Comment