Software Archive
Read-only legacy content
17060 ディスカッション

Windows Phone 8.1 app closes after opening

Mateus_A_
ビギナー
2,433件の閲覧回数
 
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 件の賞賛
46 返答(返信)
Anusha_M_Intel1
従業員
1,150件の閲覧回数

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!

Michael_O_2
新規コントリビューター I
1,150件の閲覧回数

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.

 

Nikolay_K_
ビギナー
1,150件の閲覧回数

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.

 

 

Michael_O_2
新規コントリビューター I
1,150件の閲覧回数

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.

PaulF_IntelCorp
従業員
1,150件の閲覧回数

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.

Michael_O_2
新規コントリビューター I
1,150件の閲覧回数

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 !

André_V_
ビギナー
1,150件の閲覧回数

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

PaulF_IntelCorp
従業員
1,150件の閲覧回数

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.

André_V_
ビギナー
1,150件の閲覧回数

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

André_V_
ビギナー
1,150件の閲覧回数

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

Anusha_M_Intel1
従業員
1,150件の閲覧回数

@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/

 

André_V_
ビギナー
1,150件の閲覧回数

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

Anusha_M_Intel1
従業員
1,150件の閲覧回数

@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?

Swati_S_Intel1
従業員
1,150件の閲覧回数

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

André_V_
ビギナー
1,150件の閲覧回数

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?

André_V_
ビギナー
1,150件の閲覧回数

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

PaulF_IntelCorp
従業員
1,150件の閲覧回数

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.

André_V_
ビギナー
1,150件の閲覧回数

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.

PaulF_IntelCorp
従業員
1,150件の閲覧回数

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.

André_V_
ビギナー
1,023件の閲覧回数

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

返信