Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12626

Splashscreen crashing on Samsung devices, not rendering on others

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • cordova-android-7.0.0
    • Important

    Description

      We tested the plugin on a few Samsung devices and found out that the current version of the splash screen plug-in is completely crashing the app, with an error given by AndroidRuntime (including the PID of the app) and a warning given by ActivityManager in the log:

      Force finishing activity packagename/.MainActivity

      Moreover, we noticed that the splash screen is not showing correctly on some devices. The Samsung crash was initially solved by commenting out this line:

      preferences.set("SplashDrawableId", drawableId);

      Basically, this means that storing the drawableId in the preferences is not reliable. This didn't solve the display issue on other devices, which required refactoring the code that reads the resource ID.

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              Lazza Andrea Lazzarotto
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: