我有一个使用外部URL创建的MVC5 Web应用程序。基本上我想使用webview方法加载这个外部URL并利用推送通知等。
我无法让应用运行外部网址。我更改了配置文件中的<content src="www.mydomain.com/Account/Login" />
。应用程序无法使用错误Error DEP10402: Could not locate the start page. You may need to build your project.
任何方向都会受到赞赏。
修改 这是我的配置,ps:在http://附加方括号,即[http://],用于堆栈溢出以允许编辑
<?xml version="1.0" encoding="utf-8"?>
<widget id="TTL" version="0.0.1" xmlns="[http://]www.w3.org/ns/widgets" xmlns:cdv="[http://]cordova.apache.org/ns/1.0">
<name>Toptipsterleagues</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="[http://]www.myDomain.com/Account/Login" />
<plugin name="cordova-plugin-whitelist" version="1" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
<access hap-rule="yes" origin="[http://]www.myDomain.com/Account/Login" />
<allow-navigation hap-rule="yes" href="[http://]www.myDomain/Account/Login" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<access hap-rule="yes" origin="[http://]www.myDomain.com/Account/Login" />
</platform>
<preference name="Orientation" value="default" />
<preference name="Fullscreen" value="true" />
<platform name="windows">
</platform>
<platform name="wp8">
</platform>
<plugin name="cordova-plugin-network-information" version="1.2.1" />
<vs:platformSpecificValues xmlns:vs="http://schemas.microsoft.com/appx/2014/htmlapps">
<vs:platformSpecificWidget id="TTL" platformName="windows">
<vs:name>TTL</vs:name>
</vs:platformSpecificWidget>
</vs:platformSpecificValues>
<preference name="WindowsStoreDisplayName" value="TTL" />
</widget>