简体   繁体   English

Ionic Windows App崩溃模拟器

[英]Ionic Windows App crash Emulator

I am developing windows app using ionic framework. 我正在使用离子框架开发Windows应用程序。 App working good with Android & IOS but getting crash with windows Emulator 10.0.143xxx. 应用程序在Android和IOS上运行良好,但在Windows Emulator 10.0.143xxx中崩溃。 i didn't try with real device yet. 我还没有尝试过真正的设备。

With Windows Target Version 8.1 : 使用Windows Target版本8.1:

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/2.0)'. 
The program '[4164] WWAHost.exe' has exited with code -1073741819 (0xc0000005) 'Access violation'.

With Target version 8.1 app get crash when try to use select-option from template page. 使用Target版本8.1应用程序时,尝试从模板页面使用select-option时会崩溃。 except that it is working. 除了它正在工作。

With Target Version 10.0: 对于目标版本10.0:

App get crash when launch in emulator with error. 在模拟器中启动时出现错误,应用崩溃。

'WWAHost.exe' (Script): Loaded 'Script Code (MSAppHost/3.0)'. 
The program '[4776] WWAHost.exe' has exited with code -1073741189 (0xc000027b).

I am already using meta in index.html are : 我已经在index.html中使用meta了:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">

and $compileProvider in app.js are : app.js中的$compileProvider和:

$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|ghttps?|ms-appx|ms-appx-web|x-wmapp0):/);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|ms-appx|ms-appx-web|x-wmapp0):|data:image\//);

For me, Windows 10 Crash Issue was because of One signal notification plugin : https://github.com/driftyco/ionic/issues/4671 对我来说,Windows 10崩溃问题是由于一个信号通知插件引起的: https : //github.com/driftyco/ionic/issues/4671

try may be some other plugin using at launch activity can be reason of crash. 尝试使用其他在启动活动中使用的插件可能是崩溃的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM