Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

When installed on Windows, app crashes at startup #157

Open
mavenius opened this issue Dec 21, 2015 · 6 comments
Open

When installed on Windows, app crashes at startup #157

mavenius opened this issue Dec 21, 2015 · 6 comments

Comments

@mavenius
Copy link

The tabs sample includes the following in app.js:

   if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        cordova.plugins.Keyboard.disableScroll(true);

}

On Windows 10, an error occurs when

hideKeyboardAccessoryBar(true); 

is run. Commenting out this line allows the app to start up as expected. The behavior when the error happens is the splash screen shows for a moment, but then the app closes. An Information-level event appears in Windows Application Event Viewer with an Event Name of WWAJSE.

@beatgrabe
Copy link

I ran into the same issue. Solved by doing like below:

if( window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard ) {
    // Check reference to avoid runtime error on windows phone
    if( window.cordova.plugins.Keyboard.hideKeyboardAccessoryBar ) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar( true );
    }
    cordova.plugins.Keyboard.disableScroll( true );
}

@jmatthiesen
Copy link

I, and other developers I work with, see this often, too. I know that the code in the first post here is the same as the default source in Ionic templates. So, either the Ionic templates should change to use the pattern from the @beat-at-hartwig response, or perhaps the hideKeyboardAccessoryBar function should be implemented for the Windows platform, even if it's just a function that does nothing?

@albertogallen
Copy link

I continue with the same issue

don't work for my ionic app :-\

@bouchja1
Copy link

I have also the same problem as @agallen . The solution from the @beat-at-hartwig works only for really simple Ionic application (for example generated tabs app).

@patronovski
Copy link

Any progress on this issue?

@mackevicius1988
Copy link

mackevicius1988 commented Feb 23, 2017

I have the same problem. Maybe someone has luck??

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants