cordova-plugin-lottie-splashscreen icon indicating copy to clipboard operation
cordova-plugin-lottie-splashscreen copied to clipboard

Android animation shows longer than background of splash screen

Open felixbroehl opened this issue 5 years ago • 26 comments

Bug report

On android the background of the splash screen hides noticeable before the animation. I recorded an screencast: Bildschirmvideo aufnehmen 2020-02-06 um 18 31 25_2

What steps will reproduce the problem?

I'm hiding the splash screen within the app by calling this.lottieSplashScreen.hide();

Version information

cordova info
[email protected] with:
  [email protected]
  [email protected]
  [email protected]
  [email protected]

Environment: 
  OS: darwin
  Node: v10.16.0
  npm: 6.13.7

Plugins:
  cordova-clipboard
  cordova-custom-config
  cordova-plugin-add-swift-support
  cordova-plugin-androidx
  cordova-plugin-androidx-adapter
  cordova-plugin-appavailability
  cordova-plugin-browsertab
  cordova-plugin-camera
  cordova-plugin-compat
  cordova-plugin-contacts
  cordova-plugin-device
  cordova-plugin-file
  cordova-plugin-globalization
  cordova-plugin-inappbrowser
  cordova-plugin-ionic-keyboard
  cordova-plugin-ionic-webview
  cordova-plugin-localization-strings
  cordova-plugin-lottie-splashscreen
  cordova-plugin-network-information
  cordova-plugin-qrscanner
  cordova-plugin-statusbar
  cordova-plugin-whitelist
  cordova-plugin-x-socialsharing
  cordova-sqlite-storage
  cordova.plugins.diagnostic
  es6-promise-plugin
  ionic-plugin-deeplinks

Android platform:
  ERROR: android: Command failed with exit code ENOENT



iOS platform:
  Xcode 11.3.1
  Build version 11C504

config.xml

Please provide any additional information below.

I'm using version 0.8.0

Checklist

  • [ ] If there is a (potential) plugin conflict, I've identified the conflicting plugin
  • [x] I have added a valid version output
  • [x] I have attached necessary information like a screenshot, example project or videos

felixbroehl avatar Feb 06 '20 17:02 felixbroehl

I can't reproduce this issue on an emulator. Can you share your config.xml or the specific properties you've set for Lottie? Are you experiencing the issue on a real device or an emulator? What's the Android version of the affected device?

timbru31 avatar Feb 07 '20 10:02 timbru31

Here are all preferences from my config:

    <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="21" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="LottieAnimationLocation" value="www/lottie/splash.json" />
    <preference name="AndroidLaunchMode" value="singleTask" />
    <preference name="WKWebViewOnly" value="true" />

I'm hiding the Splashscreen inside my ionic app with this.lottieSplashScreen.hide(); inside this.platform.ready().then(() => {this.lottieSplashScreen.hide();}) I'm experienced the error on an emulator and not tested it on an real device. The emulator was an Pixel 2 running API level 29. By the way my animation has a squared white background.

So I already changed my app to using fading.

So the fading on iOS also doesn't worked as I think it is intended by only fading the animation and not the background., so I already added an white full screen div that I'm fading from opacity 1 to 0 after the fade of the splash screen ended. Could I also submit an issue on that?

felixbroehl avatar Feb 07 '20 12:02 felixbroehl

Thanks for the information, I'll debug this further.


So the fading on iOS also doesn't worked as I think it is intended by only fading the animation and not the background., so I already added an white full screen div that I'm fading from opacity 1 to 0 after the fade of the splash screen ended. Could I also submit an issue on that?

Sure, this could be a further enhancement.

timbru31 avatar Feb 12 '20 11:02 timbru31

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 12 '20 11:04 stale[bot]

Not stale, that’s still on my todo list.

timbru31 avatar Apr 15 '20 20:04 timbru31

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 14 '20 23:06 stale[bot]

I am experiencing the same when delaying the splash screen. I think the issue is that the "outer" splashDialog should always be rendered in fullscreen to create a covering background and a second inner dialog should be used to render then the Lottie animation in normal or full screen mode depending on the options set in the config.xml file.

andremartin avatar Jul 23 '20 20:07 andremartin

Any chance you can provide a sample application that shows the problem @andremartin ? I've failed to reproduce this so far.

timbru31 avatar Jul 26 '20 15:07 timbru31

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 26 '20 07:09 stale[bot]

Not stale, I need to finally allocate some time to investigate this further.

timbru31 avatar Sep 26 '20 15:09 timbru31

I have the same issue as well

abomadi avatar Nov 01 '20 13:11 abomadi

Can you provide a sample app that shows the actual problem? @abomadi

timbru31 avatar Nov 01 '20 13:11 timbru31

@timbru31 It's a production app where this issue appeared, however on Pixel 2 API 28 Emulator the issue is there also changing background color does not work

abomadi avatar Nov 01 '20 14:11 abomadi

@timbru31

Alt Text

abomadi avatar Nov 01 '20 14:11 abomadi

That does not help me. If tried to reproduce the issue but was unable to do so. Unless one can provide a reproducible example it’s very difficult to fix or even debug this.

timbru31 avatar Nov 01 '20 14:11 timbru31

@timbru31 i totally understand, i will try to create a new project for this to help

abomadi avatar Nov 02 '20 11:11 abomadi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 02 '21 04:01 stale[bot]

Same issue for me using ionic.

blahblehblah avatar Feb 07 '21 20:02 blahblehblah

Again, such a comment does not help. In order to fix this matter I need a reproducible example.

timbru31 avatar Feb 08 '21 00:02 timbru31

Hi @timbru31, Maybe there si something with de color selected, or color codes. I´m experiencing the same issue that @abomadi describes with color black (#000000), but it works well with the color of the example you provide ( <preference name="LottieBackgroundColor" value="#fff000a3" />) Also, when i used other color i need: #007dae, the result is a fucsia screen. Tested in android device (Android 10) & ionic 5

sebafra avatar May 25 '21 16:05 sebafra

Thanks for the pointer, worth investigating 👍

timbru31 avatar May 25 '21 18:05 timbru31

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 22 '21 18:08 stale[bot]

bump.

timbru31 avatar Aug 22 '21 18:08 timbru31

Hi @timbru31, I am facing the same issue so I created a repo that reproduces it. Hope this will help with further investigations. I was able to reproduce it on a device with android 11.

DanielaMazur avatar Apr 01 '22 12:04 DanielaMazur

Awesome, thank you very much. This will definitely help.

timbru31 avatar Apr 01 '22 14:04 timbru31

Hi there !

I have the same issue with Ionic (Angular).

This is the repo with the issue. https://gitlab.com/m9712/mygarden/-/tree/lottie_splash_screen

I created another blank Ionic app with the same ionic and angular version, but this time all work perfectly, but I don't know why :). https://gitlab.com/BugProg/lottie-exp

I hope it could help you and if you have any question I will reply as soon as possible.

BugProg avatar Jul 24 '22 14:07 BugProg