K
K
kiselyow2019-09-20 21:13:52
phonegap
kiselyow, 2019-09-20 21:13:52

Why is the internet not working in the phonegap app?

Here is my 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="[email protected]_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>


Here is my 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>


PS whitelist plugin added

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question