You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/08/04 20:05:20 UTC

[GitHub] [cordova-ios] ASHBAW opened a new issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

ASHBAW opened a new issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137


   # Bug Report
   
   ## Problem
   On an iOS device this.splashscreen.hide() does not hide the splash screen. On Android devices this works correctly.
   
   ### What is expected to happen?
   splashscreen should hide after this.splashscreen.hide() is called.
   
   ### What does actually happen?
   Splashscreen stays displayed. If I turn my device to the side I can see part of the background screen.
   
   ## Information
   If I change the following in config.xml from false
   `    <preference name="AutoHideSplashScreen" value="false" />`
   
   to true
   `    <preference name="AutoHideSplashScreen" value="false" />`
   
   after 5 seconds
   `    <preference name="SplashScreenDelay" value="5000" />`
   
   the splashscreen on iOS devices will hide. 
   
   Using this.splashscreen.hide() does not work.
   
   ### Command or Code
   In config.xml have the following:
   `    <preference name="AutoHideSplashScreen" value="false" />`
   
   Within the app.component.ts I have the following:
   ```
     initializeApp() {
       this.platform.ready().then(() => {
         this.statusBar.styleDefault();
         setTimeout(() => {
           this.splashScreen.hide();
         }, 1000);
       });
     }
   
   ```
   This has worked before on iOS devices on a number of other older Ionic projects. This now only works with Android devices.
   
   ### Environment, Platform, Device
   The issue occurs on iOS devices. It does NOT occur on Android devices.
   
   ### Version information
   I am using the Ionic 5 framework. I create a new project and am using the following:
   ```
       "cordova-plugin-splashscreen": "^6.0.0",
       "cordova-ios": "^6.2.0",
       "@ionic-native/splash-screen": "^5.35.0",
   ```
   
   Here is the ionic/cordova information for environment:
   ```
   Ionic:
   
      Ionic CLI                     : 6.16.3 (/Users/b/.nvm/versions/node/v14.17.1/lib/node_modules/@ionic/cli)
      Ionic Framework               : @ionic/angular 5.6.13
      @angular-devkit/build-angular : 12.1.4
      @angular-devkit/schematics    : 12.1.4
      @angular/cli                  : 12.1.4
      @ionic/angular-toolkit        : 4.0.0
   
   Cordova:
   
      Cordova CLI       : 10.0.0
      Cordova Platforms : android 9.1.0, ios 6.2.0
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 10 other plugins)
   
   Utility:
   
      cordova-res : 0.15.3
      native-run  : 1.4.0
   
   System:
   
      ios-deploy : 1.11.4
      ios-sim    : 8.0.2
      NodeJS     : v14.17.1 (/Users/b/.nvm/versions/node/v14.17.1/bin/node)
      npm        : 7.20.0
      OS         : macOS Big Sur
      Xcode      : Xcode 12.5.1 Build version 12E507
   ```
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] jcesarmobile closed issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

Posted by GitBox <gi...@apache.org>.
jcesarmobile closed issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] ArMouReR commented on issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

Posted by GitBox <gi...@apache.org>.
ArMouReR commented on issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137#issuecomment-1015798339


   Have you solved this issue ? My problem is that splashScreen hides without (before) call to hide()


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] jcesarmobile edited a comment on issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

Posted by GitBox <gi...@apache.org>.
jcesarmobile edited a comment on issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137#issuecomment-1015850493


   Do you have `<preference name="AutoHideSplashScreen" value="false" />` in you config.xml?
   Looks like the opposite of the issue, it’s better if you create your own providing a sample app if possible


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] jcesarmobile commented on issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137#issuecomment-1015850493


   Do you have `<preference name="AutoHideSplashScreen" value="false" />` in you config.xml?
   Looks like to opposite of the issue, it’s better if you create your own providing a sample app if possible


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] jcesarmobile commented on issue #1137: Splash screen is not hiding with this.splashscreen.hide() on iOS

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1137:
URL: https://github.com/apache/cordova-ios/issues/1137#issuecomment-919602226


   That’s a problem on ionic-native, since the plugin is integrated into cordova-iOS, the ionic-native wrapper no longer works. You have to use the regular js api instead of the ionic native wrapper.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org