[WP8.1] Windows Phone 8.1设备中的ms-appdata / ms-local-stream未触发WebView脚本通知事件 [英] [WP8.1] WebView Script Notify event is not firing for ms-appdata/ms-local-stream in Windows Phone 8.1 Device

查看:61
本文介绍了[WP8.1] Windows Phone 8.1设备中的ms-appdata / ms-local-stream未触发WebView脚本通知事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


目前我正在工作的情况下,我必须下载一个包含html的zip文件(运行时表单), css和js文件,我必须在Web视图中显示html文件。 html文件返回一个json字符串,我需要将
发送回服务器。当我将此html文件存储在Storage Local文件夹中时,我使用
NavigateToLocalStreamUri。并且脚本notify  在模拟器中正常工作。但在设备中它不起作用。



我遇到的主要问题是我无法在Package.appmanifest中声明Content Uri,因为我必须支持离线设施,所以我必须在本地文件夹下载zip文件。 


如果我们有任何解决方法,请告诉我。等待快速回复。 

解决方案

Hello
Satyajit85


>>脚本通知  在模拟器中工作正常。但是在设备中它无法工作。


如果它可以在模拟器上运行,我认为你的编写代码应该没问题,你是否尝试在不同的手机设备上运行你的应用程序检查这是否是由设备引起的?或者你可以和我们分享一个repro项目,我们可以帮助你做一个测试
,看看我们是否也可以在手机设备上重现这个问题。


问候。


Hi,

Currently I am working in a scenario where I have to download one zip file (run time form) which contains html, css and js files and I have to show the html file in a web view. The html file returns a json string which I need to send back to the server. As I am storing this html file in a Storage Local folder, I am using NavigateToLocalStreamUri. And the script notify  is working fine in emulator. But in device its not working.

The major problem here I have is I can not declare Content Uri in Package.appmanifest as I have to support the offline facility and so I have to download the zip file in local folder. 

Please let me know if we have any workaround for this. Awaiting for a quick reply. 

解决方案

Hello Satyajit85,

>>And the script notify  is working fine in emulator. But in device its not working.

If it could work on the emulator, I think your write code should be ok, do you have a try to run your application on a different phone device to check if this is caused by the device? Or you could share a repro project with us, we could help to make a test to see if we could reproduce this issue on a phone device as well.

Regards.


这篇关于[WP8.1] Windows Phone 8.1设备中的ms-appdata / ms-local-stream未触发WebView脚本通知事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆