WP7和WP8内的PhoneGap应用中没有互联网连接

时间:2014-05-27 13:29:15

标签: windows-phone-7 cordova windows-phone-8 windows-phone cordova-3

我在WMAppManifest.xml中添加了以下行,

    <Capabilities>
        <Capability Name="ID_CAP_WEBBROWSERCOMPONENT" />
        <Capability Name="ID_CAP_NETWORKING" />
        <Capability Name="ID_CAP_IDENTITY_DEVICE" />
        <Capability Name="ID_CAP_SENSORS" />
        <Capability Name="ID_CAP_LOCATION" />
    </Capabilities>

在config.xml下我添加了以下行

<feature name="Device">
    <param name="wp-package" value="Device" />
</feature>
<feature name="NetworkStatus">
    <param name="wp-package" value="NetworkStatus" />
</feature>
<feature name="Accelerometer">
    <param name="wp-package" value="Accelerometer" />
</feature>
<feature name="Compass">
    <param name="wp-package" value="Compass" />
</feature>
<feature name="SplashScreen">
    <param name="wp-package" value="SplashScreen" />
</feature>

请帮忙吗?

0 个答案:

没有答案