@kiselyow

Почему не работает интернет в phonegap приложении?

Вот мой config.xml:
<?xml version='1.0' encoding='utf-8'?>
<widget id="ru.zapominayka_web" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>Запоминайка</name>
    <description>
        Запоминай стихи проще.
    </description>
    <author email="zapominayka@zapominayka_web.ru" href="http://phonegap.com">
        Mikhail Kiselyov
    </author>
    <content src="index.html" />
    <preference name="DisallowOverscroll" value="true" />
    <preference name="android-minSdkVersion" value="14" />
    <preference name="android-targetSdkVersion" value="29" />
    <platform name="android">
        <icon src="icon.png" />
    </platform>
    <access origin="*" />
    <access origin='https://zapominayka-test.ml' minimum-tls-version='TLSv1.1' requires-forward-secrecy='false' requires-certificate-transparency='false' />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>
    <plugin name="cordova-plugin-inappbrowser" spec="~1.7.2" />
    <plugin name="cordova-plugin-whitelist" spec="~1.3.4" />
</widget>


Вот мой index.html:
<!DOCTYPE html>
<html>
<head>
	<title>Запоминайка</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: 'unsafe-inline' https://ssl.gstatic.com; style-src 'self' 'unsafe-inline'; media-src *" />
	<link rel="stylesheet" type="text/css" href="css/index.css">
	<script src="cordova.js"></script>
	<script src="js/jquery.js"></script>
	<script src="js/index.js"></script>
	<style id="style"></style>
</head>
<body>
    ...
    <div id="section">
      <a><img src="http://s.picture-russia.ru/wpic/l/4/c/4c370fd653d966206624d45142ef2221.jpg">Осень</a>
      <span><img src="img/heart_small.svg"><br>226</span>
    </div>
  </div>
	<script type="text/javascript">
  	app.initialize();
  </script>
</body>
</html>


P.S. плагин whitelist добавлен
  • Вопрос задан
  • 79 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы