cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SharUpOff <>
Subject [GitHub] cordova-plugin-splashscreen issue #130: CB-13094: (android) Don't show splas...
Date Tue, 25 Jul 2017 09:53:46 GMT
Github user SharUpOff commented on the issue:
    I got it so:
    window.addEventListener('beforeunload', function()
    I show splash when reload my application without restarting cordova in some cases (language
switching, debug mode, etc). Closing by "back" button fires "beforeunload" (to "about:blank"
i think) and showing splash in same time activity being finished. Also i use crosswalk, maybe
it fires "beforeunload", not the native WebView.
    Trace here:
    Process:, PID: 16999
    android.view.WindowManager$BadTokenException: Unable to add window – token android.os.BinderProxy@5d0142d
is not valid; is your activity running?
    at android.view.ViewRootImpl.setView(
    at android.view.WindowManagerGlobal.addView(
    at android.view.WindowManagerImpl.addView(
    at org.apache.cordova.splashscreen.SplashScreen$
    at org.apache.cordova.splashscreen.SplashScreen.showSplashScreen(
    at org.apache.cordova.splashscreen.SplashScreen.onMessage(
    at org.apache.cordova.PluginManager.postMessage(
    at org.apache.cordova.CordovaWebViewImpl.postMessage(
    at org.apache.cordova.splashscreen.SplashScreen$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message