We are developing a hybrid app using Phonegap.

Here is a concern we have. In CordovaWebView.java LN#: 971, (https://github.com/archananaik/cordova-amazon-fireos/blob/master/framework/src/org/apache/cordova/CordovaWebView.java) settings.setAllowUniversalAccessFromFileURLs(true); is called to allow an universal access from a file url. It perfectly works on Android Webkit-based WebView and Android 4.4 Chromium WebView. But it seems that it is not working on Amazon WebView so that my app cannot send an AJAX request to "http://google.com", for example, from index.html.

We are wondering whether this is an known issue. Is there anyone who has successfully setup to use Amazon WebView without any problem described above?

Thanks!


[UPDATE] Example) setAllowUniversalAccessFromFileURLs() does not change the setting value...

AmazonWebView _webView = (AmazonWebView) appView;
AmazonWebSettings settings = _webView.getSettings();
settings.setAllowUniversalAccessFromFileURLs(true);
有帮助吗?

解决方案

This issue has been resolved in the latest system/app update.

Go to Settings -> Device -> System Updates. Make sure you have the latest system version. Use "Check Now" option to check for system updates. Install updates and check if the problem is resolved.

If not,

  1. Which Kindle device are you testing on? (HDX or HD)
  2. What is the current system version?
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top