webview - Windows 8 RT, load html files from InstalledLocation not working -
i'm developing windows 8 app using c#. need load html page downloaded on runtime path:
c:\users\me\desktop\svnworking\myapp\bin\x86\debug\appx\myweb.html
and load page in webview using:
webview2.source = new uri("ms-appx-web:///myweb.html");
when test app in simulator or in surfaces (rt , pro) while debugging webview loads html page, if generate package , install or install app windows store can't see html in webview. permissions problem releases?
i believe you're seeing behavior because of difference between debugging , real app deployment. when app deployed debugging purposes, it's running different location store deployment. in latter case, install folder read-only.
thus when "downloaded on runtime," store-deployed app not able save file installedlocation @ all. can test creating app package , using powershell script deployment. same store deployment, , means app won't in debug location have above.
you need use app data folders instead of installedlocation, is, either windows.storage.applicationdata.localfolder or temporaryfolder, , use ms-appdata:///local or ms-appdata:///temp uri base. note, however, supported starting windows 8.1 only, not windows 8.0.
Comments
Post a Comment