Software Archive
Read-only legacy content
17060 Discussions

Windows Phone 8.1 app closes after opening

Mateus_A_
Beginner
2,383 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
Anusha_M_Intel1
Employee
1,129 Views

Hi Mateus, our team is trying to get to the bottom of this too. We have had apps crash at launch after UI loads and we are trying to find the source of the problem. Another user said his app with the same issue worked on Windows 10 preview. Maybe you can try that in the meantime. I will post here as soon as I find a solution. Thanks!

0 Kudos
Michael_O_2
New Contributor I
1,129 Views

Hello.

The same thing is happening on my Cordova Windows Phone 8 app.

The previous version worked when I built it with the legacy option.

I have tested this on the emulator and there is no error.

Thanks.

 

0 Kudos
Nikolay_K_
Beginner
1,129 Views

Do you use windows phone shim ?

Read here https://github.com/MSOpenTech/winstore-jscompat

They say it is not required for Windows 10 app, but I get a working application for wp8.1/wm10/windows 8.1 universal application/Windows 10 application only after apply this shim.

 

 

0 Kudos
Michael_O_2
New Contributor I
1,129 Views

Thanks Nikolay.

I just did that , but it didn't work for me. I have a strong feeling that the Cordova build for Windows is not 100% ready.

0 Kudos
PaulF_IntelCorp
Employee
1,129 Views

Nikolay -- thanks for pointing out that shim library, we'll give it a try with some of the samples/demos we are trying to debug on Windows 8.1 Phone to see if it helps.

0 Kudos
Michael_O_2
New Contributor I
1,129 Views

The update I have is that I added the wormhole.js that was bundled with MoSync IDE and removed cordova.js

When I built the app with Intel XDK, the app got to the homepage(something that didn't happen when I removed wormhole.js) of the app before it crashed.

That's a pointer to the fact that something needs to be done on the Cordova build for Windows.

Please help !

0 Kudos
André_V_
Beginner
1,129 Views

Same problem here. The app shows the splash screen and close. Any solution?

0 Kudos
PaulF_IntelCorp
Employee
1,129 Views

Andre -- please see this sticky post > https://software.intel.com/en-us/forums/intel-xdk/topic/607055

p.s. You should not be removing cordova.js as was suggested by the previous poster.

0 Kudos
André_V_
Beginner
1,129 Views

I included xdk-win8x-compat.js and remove cordova.js but it's still closing after splash screen.

0 Kudos
André_V_
Beginner
1,129 Views

It was a error in a example, now it's working. Some question: google maps work in windows phone?

0 Kudos
Anusha_M_Intel1
Employee
1,129 Views

@Andre, we haven't heard about any issues with google map not displaying on windows phones. 

You might find this useful: http://www.christianengvall.se/phonegap-and-google-maps/

 

0 Kudos
André_V_
Beginner
1,129 Views

I have a big project working in android and iphone. I tried to run on windows phone but isn't working, so I try a demo project. This demo show a google maps, is working in android but in windows phone the app opens, show the header and footer but dont show the map. I will try again tomorrow.

I used this sample http://codepen.io/ionic/pen/uzngt

0 Kudos
Anusha_M_Intel1
Employee
1,129 Views

@Andre, I tried your sample code in Windows Phone 8.1 and my PC (Windows 8.1). Both builds crashed at launch.

Could you provide more information about the device and build you tried?

0 Kudos
Swati_S_Intel1
Employee
1,129 Views

@Andre, have you tried our Geolocation sample app? It uses google maps. Try that and let us know if it works for you. 

0 Kudos
André_V_
Beginner
1,129 Views

Sorry, I had to stop the windows phone project but now I'm back.
The app with google maps opens but the maps still blank.

I did a test with the sample xdk project and app crashs.

I create a new project > samples and demos > general > geolocation demonstration and only appears "Determining Your Location", after few seconds de app closes.

In my sample de app opens, if I try to call google maps function the app closes.

I downloaded a app with google maps and when the app starts it call to permission, but in my app doesn't calling, any idea?

0 Kudos
André_V_
Beginner
1,129 Views

I tried a diferrente thing. I call the current location only and receive the message "Unable to get location: This site dows not have permission to use the Geolocation API". Is something missing? I'm using geolocation plugin

0 Kudos
PaulF_IntelCorp
Employee
1,129 Views

Andre -- for Windows development, please make sure your app is configured to use CLI 5.4.1, prior build versions do not provide complete support for Windows and Windows Phone. Also, make sure you include this JS lib in the project to deal with some Win Phone issues > https://github.com/xmnboy/xdk-win8x-compat.js

On iOS and Windows devices (and now, Android 6 devices) the permission to use geolocation happens when the app is run and the app makes a call to the geolocation APIs. If you answered "no" to that permission you won't get a chance to answer "yes" unless you enable the permissions through the device's system app settings. There is a third-party plugin you can use in your app to get the user to that settings place (see https://www.npmjs.com/package/cordova.plugins.diagnostic.api-22) in order to turn a "no" into a "yes" (which can only be done by the user, an app cannot change this setting, only get the user to the settings page). Also, make sure you are using the up-to-date core Cordova plugins.

0 Kudos
André_V_
Beginner
1,129 Views

I still have the same error. Using CLI 5.4.1 with xdk-win8x-compat.js in the intel xdk sample of google maps. and the app still closes when I call google.maps.

0 Kudos
PaulF_IntelCorp
Employee
1,129 Views

Try using weinre with your built Windows app, or open the app in IE10 or IE11 (IE10 if you're building for Windows 8.0 or Windows Phone 8.0, IE11 if building for Windows Phone 8.1 or Windows 8.1, and Edge if building for Windows 10).

See this video > https://software.intel.com/en-us/videos/using-the-test-tab < from this page > https://software.intel.com/en-us/xdk/docs/webinars-videos-links < for help on how to use weinre.

0 Kudos
André_V_
Beginner
1,002 Views

On IE11 I received the error " 'google' is not defined". The same project works in chrome, android, ios and xdk emulator. Any idea?

0 Kudos
Reply