Why does a very simple phone call application use a mobile data plan?

I have created a very simple mobile phone application that does nothing connected to the network. All resources (images, css, etc.) are local and I do not make any ajax calls to the remote server. But when I check the mobile data screen on my phone, I see that it used some data. See the screenshot below (the 4th application is called "cherouvim phonegap test"). That says 308K, and that was 5 hours later.

enter image description here

Clicking on this gives me the following breakdown:

  • foreground: 91.23KB
  • background: 217KB

HTML:

<!DOCTYPE html> 
<html> 
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <meta name="viewport" content="user-scalable=no, width=device-width" /> 
    <script type="text/javascript" src="phonegap.js"></script>
</head>
<body>
    ...
</body>
</html>

I am building using the phonegap assembly, and my config.xml is:

<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns     = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"
    id        = "cherouvim.test"
    version   = "1.0.0">

    <name>cherouvim phonegap test</name>
    <description>...</description>

    <preference name="phonegap-version" value="3.5.0" />
    <preference name="android-installLocation" value="auto" />
    <preference name="orientation" value="portrait" />
    <preference name="fullscreen" value="true" />

    <gap:plugin name="org.apache.cordova.media" />

    <feature name="http://api.phonegap.com/1.0/network" />
    <access origin="*" />

    <gap:platform name="android" />

</widget>

The documentation says:

<!-- If you do not want any permissions to be added to your app, add the
    following tag to your config.xml; you will still have the INTERNET
    permission on your app, which PhoneGap requires. -->
<preference name="permissions" value="none"/>

Is this a hint that Phonegap is really doing something networked behind the scenes?

: , , nexus 5 (android 4.4.4), " " ART.

+4
1

phonegap " " </body>.

<script type="text/javascript" src="http://debug.build.phonegap.com/target/target-script-min.js#35fd7e24-189a-11e4-8c3c-e63707b18140"></script>

.

" " script. , , , , .

+1

All Articles