Software Archive
Read-only legacy content

Windows Phone 8.1 app closes after opening

Mateus_A_
Beginner
5,450 Views
 
Hello , I managed after a long time , run my application on the device with windows phone 8.1 , but when trying to open the same, the SplashScreen loads normally (using the Default Splash XDK put in landscape mode) , after or my application starts Index for a second or two, and he closes it after loading . I tried to change the version of the CLI , use another project without any method , etc., but there was the same application problem close of nowhere. The method I used was to install this . This configuration may be some problem, or the like, or what ?
 
Im testing on a Lumia 1020, running a Lumia Denim( Windows Phone 8.1 Update) .
 
 
 
 
0 Kudos
46 Replies
Dev_A_
Beginner
856 Views

Hi Paul,

Include all the necessary .js file still the app is silently terminating on launch on real device.

Why this is happening again and again . If it cant be done using intel xdk then i should use  some other alternative for it, If it is possible please help me out with it.

Thanks,

Dev

0 Kudos
PaulF_IntelCorp
Employee
856 Views

Sorry, but I'm not able to tell you why your app is terminating on launch, it could be due to many different things. Are you using the xdk-compat library? It is necessary if you are using the alert() function in your app.

Did you try opening your index.html file in IE 10 or IE 11 and use the debugger there? Quite often you can find issues caused by differences between the runtime engines by debugging your app in IE. You cannot debug Cordova APIs, you'll have to work around those parts of your app, but you may be able to identify what is causing the problem you are encountering.

In the worst case, you can install Microsoft Visual Studio and the Cordova CLI tools and convert your project into a local CLI project. From there you can use the JavaScript debug tools in Visual Studio to get the closest look at what's going wrong. Sorry, but Microsoft does not provide a way to remotely debug a built app, like Android and iOS do, so debugging Windows mobile hybrid apps is more difficult. If we could provide a clean and easy way to do this we would, but there is none out there.

0 Kudos
Bhavya_A_
Beginner
856 Views

Dear Paul,

Tried all solution provided by intel team for windows phone 8.1 still my application crashes after launch but the same app is working on android and iOS devices . Is there a solution for windows phone 8.1 or not ? Please reply its extremely important .

 

Thanks 

Bhavya 

0 Kudos
PaulF_IntelCorp
Employee
856 Views

Bhavya -- did you try all of the following? The XDK does not control the runtime environment, this is a function of the target device and the Cordova framework. We simply provide a mechanism to implement a Cordova app.

  • Are you using the xdk-compat.js library in your app?
  • Did you try debugging your app directly in IE 11?
  • Did you try installing VS and Cordova CLI?

Note that the last method provides the best debugging environment for a Windows Cordova app, since it provides the complete JavaScript debugging environment. This means you need to convert your project folder into a Cordova CLI project, which can be done by following these steps.

The second option, debugging directly in IE 11, can frequently provide hints to usage patterns that do not work in IE but do work in Chrome or Safari. When your app runs on a Windows or Windows Phone 8.x device it is running in a Silverlight runtime, which is roughly equivalent to IE 10 (Win 8.0) and IE 11 (Win 8.1). When it runs on a Windows 10 device it is running in an Edge runtime. Those runtimes, especially the IE 10/11 runtimes, have significant differences in supported APIs and behaviors when compared to the Chrome equivalent runtimes found on Android devices and the Safari equivalent runtimes found on iOS devices. Unfortunately, Microsoft does not provide a very easy way to perform remote debugging, like you can do with an Android device and remote CDT.

It is extremely important that you use the xdk-compat.js library as part of your app if you are building for Windows, without it you are likely to experience many problems, especially with Win 8.x devices. This is due to the way the Win 8.x runtime environments are configured. See the documentation and links mentioned within the documentation for that library for more details. In essence, the IE 10/11 mobile runtime is very restrictive and most of the things you can do in a Chrome or Safari environment you cannot do in the IE 10/11 mobile environment.

Paul F. (Intel) wrote:

Sorry, but I'm not able to tell you why your app is terminating on launch, it could be due to many different things. Are you using the xdk-compat library? It is necessary if you are using the alert() function in your app.

Did you try opening your index.html file in IE 10 or IE 11 and use the debugger there? Quite often you can find issues caused by differences between the runtime engines by debugging your app in IE. You cannot debug Cordova APIs, you'll have to work around those parts of your app, but you may be able to identify what is causing the problem you are encountering.

In the worst case, you can install Microsoft Visual Studio and the Cordova CLI tools and convert your project into a local CLI project. From there you can use the JavaScript debug tools in Visual Studio to get the closest look at what's going wrong. Sorry, but Microsoft does not provide a way to remotely debug a built app, like Android and iOS do, so debugging Windows mobile hybrid apps is more difficult. If we could provide a clean and easy way to do this we would, but there is none out there.

0 Kudos
PaulF_IntelCorp
Employee
856 Views

Bhavya -- also see this post > https://software.intel.com/en-us/forums/intel-xdk/topic/607055 <

0 Kudos
Reply