Giter VIP home page Giter VIP logo

Comments (9)

marckassay avatar marckassay commented on May 24, 2024 1

I believe I had the same issue as @hoi4 but using Ionic 4 for Android. Executing @timbru31's copy_build_extras.js in CLI resolved the issue!

@timbru31 this is an awesome project, clean and well documented too! Thanks!

from cordova-plugin-lottie-splashscreen.

timbru31 avatar timbru31 commented on May 24, 2024

Hi,

could you please post the output of npx ionic info? Besides that, have you installed the plugin to an existing platform? Or first installed the plugin and then added the android platform? Have you made sure to correctly configure an animation location in the config.xml?

from cordova-plugin-lottie-splashscreen.

hoi4 avatar hoi4 commented on May 24, 2024

Output of npx ionic info:

Ionic:

   ionic (Ionic CLI)  : 4.10.2 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.3
   @ionic/app-scripts : 3.2.1

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 5 other plugins)

System:

   NodeJS : v10.15.0 (/usr/local/Cellar/node@10/10.15.0/bin/node)
   npm    : 6.7.0
   OS     : macOS Mojave
   Xcode  : Xcode 10.1 Build version 10B61

I have the problem in both cases:

  • When first adding the platform and then installing the plugin
  • When first installing the plugin and then adding the platform

When not configuring anything in config.xml, the app crashes.
When specifying a location of an animation, the app does not crash.
When specifying another preference besides LottieAnimationLocation the app crashes. (I tried setting LottieBackgroundColor)

Do I have to uninstall the standard splashscreen cordova plugin?

from cordova-plugin-lottie-splashscreen.

timbru31 avatar timbru31 commented on May 24, 2024

You can install the other splash screen plugin, both can co-exist. Ideally you replace the “stock” splash screen plugin with this one. Some plugins like cordova-plugin-ionic has a dependency on the other splash plugin though. I’m going to add a small section in the README, to explain co-behavior.

Could you possibly share your config.xml?

from cordova-plugin-lottie-splashscreen.

timbru31 avatar timbru31 commented on May 24, 2024

I believe this issue is caused by the installation flow: platform add android -> add plugin. In this case the required hook is not executed.
I'll update the plugin to execute the hook on plugin add, too.
The following command should fix the issue: node plugins/cordova-plugin-lottie-splashscreen/hooks/android/copy_build_extras.js

from cordova-plugin-lottie-splashscreen.

Deusing avatar Deusing commented on May 24, 2024

I cannot get it to work :(

ionic start myApp tabs --type=ionic-angular
cd myApp && ionic cordova plugin add cordova-plugin-lottie-splashscreen
ionic cordova platform add android
ionic cordova run android

it just crashes.
Output from npx ionic info

Ionic:

   ionic (Ionic CLI)  : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.5
   @ionic/app-scripts : 3.2.2

Cordova:

   cordova (Cordova CLI) : 9.0.0
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 5 other plugins)

System:

   Android SDK Tools : 26.1.1 (/home/deusing/Android/Sdk)
   NodeJS            : v10.4.1 (/usr/local/bin/node)
   npm               : 6.9.0
   OS                : Linux 4.15

Any idea how to proceed?

from cordova-plugin-lottie-splashscreen.

timbru31 avatar timbru31 commented on May 24, 2024

from cordova-plugin-lottie-splashscreen.

CarlosLopezR avatar CarlosLopezR commented on May 24, 2024

@timbru31 Hello, i am having the same issue but i cant find that file called copy_build_extras.js to execute it? what i am doing wrong? help me please!!

from cordova-plugin-lottie-splashscreen.

timbru31 avatar timbru31 commented on May 24, 2024

Make double sure you are using cordova-android@9 and set the two flags from the readme, if it still not works open a new issue, follow the issue template please. (hooks are no longer needed)

from cordova-plugin-lottie-splashscreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.