Giter VIP home page Giter VIP logo

timbru31 / cordova-plugin-lottie-splashscreen Goto Github PK

View Code? Open in Web Editor NEW
126.0 4.0 46.0 11.56 MB

šŸ£ šŸŽ¬ šŸ“± Apache Cordova plugin to show Lottie animations as the splash screen with Airbnb's Lottie wrapper

Home Page: https://www.npmjs.com/package/cordova-plugin-lottie-splashscreen

License: MIT License

Swift 33.52% JavaScript 6.36% TypeScript 8.00% Kotlin 36.92% CSS 8.73% HTML 6.16% Shell 0.31%
cordova cordova-plugin swift lottie lottie-ios bodymovin phonegap-plugin phonegap lottie-android kotlin

cordova-plugin-lottie-splashscreen's Introduction

cordova-plugin-lottie-splashscreen

Run a security audit Linting Smoke test on Ubuntu (Apache Cordova) Smoke test on Ubuntu (Ionic) Smoke test on macOS Smoke test on Windows

dependency Status Known Vulnerabilities

Commitizen friendly License npm

Apache Cordova plugin to show bodymovin/Lottie animations as the splash screen with Airbnb's Lottie wrapper

Supported platforms

  • iOS (11+) (with cordova-ios >= 5.0.0 only)
  • Android (with cordova-android >= 10.0.0 only)

Planned platforms

  • macOS (currently on hold until cordova-osx has a better Swift and CocoaPods support or cordova-ios gains Catalyst support)

Prerequisites/Warnings

iOS

You need to have CocoaPods installed because lottie-ios is fetched from there.

$ sudo gem install cocoapods
$ pod setup
Caveats

Only cordova >= 9.0.0 and cordova-ios >= 5.0.0 are supported.
You need to specify a valid SwiftVersion (minimum is 5.5) in your config.xml. (see https://cordova.apache.org/docs/en/latest/config_ref/)

Android

AndroidX and Kotlin support is required. Therefore only cordova-android >= 9.0.0 is supported.
If you use cordova-android <10.0.0 then you need to enable Kotlin and AndroidX in your config.xml by setting GradlePluginKotlinEnabled and AndroidXEnabled to true.
In the FAQ are some examples with common error messages and how to fix them.

Installation

from npm (recommended)

$ cordova plugin add cordova-plugin-lottie-splashscreen

from git (unstable)

$ cordova plugin add https://github.com/timbru31/cordova-plugin-lottie-splashscreen.git

Usage

This Apache Cordova plugin is meant as a replacement for the stock cordova-plugin-splashscreen.
An example project can be found in the example folder.

Methods

  • lottie.splashscreen.hide
  • lottie.splashscreen.show
  • lottie.splashscreen.on
  • lottie.splashscreen.once
lottie.splashscreen.hide

This methods hides the current active Lottie splashscreen and destroys the views. Returns a Promise which is resolved with "OK" in the success case or the error message when it's failed.

await lottie.splashscreen.hide();
lottie.splashscreen.show

This method shows a Lottie splash screen. If no arguments are given, it defaults to the config.xml values, however you can pass (new) options here to change the behavior on runtime. Returns a Promise which is resolved with "OK" in the success case or the error message when it's failed. (For easier reading the TypeScript notation is used)

await lottie.splashscreen.show(location?: string, remote?: boolean, width?: number, height?: number)
lottie.splashscreen.on

This method listens to custom lottie events that are dispatched from the native side and invokes a configured callback function. If the event parameter is a falsy value, such as null or "", the method will listen to all Lottie events. (For easier reading the TypeScript notation is used)

type LottieEvent = 'lottieAnimationStart' | 'lottieAnimationEnd' | 'lottieAnimationCancel' | 'lottieAnimationRepeat';

lottie.splashscreen.on(event: LottieEvent, callback: (ev: Event) => void);
lottie.splashscreen.once

This method listens to a custom lottie event once and resolves the Promise once the event has been called. (For easier reading the TypeScript notation is used)

type LottieEvent = 'lottieAnimationStart' | 'lottieAnimationEnd' | 'lottieAnimationCancel' | 'lottieAnimationRepeat';

await lottie.splashscreen.once(event: LottieEvent).then(event => console.log(event));

Preferences

  • LottieRemoteEnabled (Boolean, default false). Toggles Lottie's remote mode which allows files to be downloaded/displayed from URLs. Example:
    <preference name="LottieRemoteEnabled" value="true" />
  • LottieAnimationLocationLight (String, default ""). Location of the Lottie JSON file that should be loaded in light mode. Can either be a URL (if LottieRemoteEnabled is true) or a local JSON or ZIP file (e.g. www/lottie/error.json).
    <preference name="LottieAnimationLocationLight" value="https://assets.lottiefiles.com/datafiles/99nA1a7mkSF3Oz8/data.json" />
  • LottieAnimationLocationDark (String, default ""). Location of the Lottie JSON file that should be loaded in dark mode. Can either be a URL (if LottieRemoteEnabled is true) or a local JSON or ZIP file (e.g. www/lottie/error.json).
    <preference name="LottieAnimationLocationDark" value="https://assets.lottiefiles.com/datafiles/99nA1a7mkSF3Oz8/data.json" />
  • LottieAnimationLocation (String, default ""). Location of the Lottie JSON file that should be loaded as a fallback if there are no dark or light mode animations defined or if one of them is an invalid location. Can either be a URL (if LottieRemoteEnabled is true) or a local JSON or ZIP file (e.g. www/lottie/error.json).
    <preference name="LottieAnimationLocation" value="https://assets.lottiefiles.com/datafiles/99nA1a7mkSF3Oz8/data.json" />
  • LottieImagesLocation (String, default path of LottieAnimationLocation). Android only! Location of the Lottie images folder specified by the JSON.
    <preference name="LottieImagesLocation" value="www/lottie/images" />
  • LottieCancelOnTap (Boolean, default false). Immediately cancels the Lottie animation when the user taps on the screen.
    <preference name="LottieCancelOnTap" value="true" />
  • LottieHideTimeout (Double for iOS and Integer for Android, default 0). Duration after which the Lottie animation should be hidden. CAUTION: iOS reads this value in SECONDS, but e.g., 0.5 is supported. Android reads this value in MILLISECONDS!
    <preference name="LottieHideTimeout" value="?" /> <!-- CAUTION: iOS reads this value in **SECONDS**, Android reads this value in **MILLISECONDS**>
  • LottieBackgroundColorLight (String, default #ffffff). Background color of the overlay in light. Can be used with alpha values, too. (For more information see the 8 digits notation of RGB notation)
    <preference name="LottieBackgroundColorLight" value="#fff000a3" />
  • LottieBackgroundColorDark (String, default #ffffff). Background color of the overlay in dark mode. Can be used with alpha values, too. (For more information see the 8 digits notation of RGB notation)
    <preference name="LottieBackgroundColorDark" value="#fff000a3" />
  • LottieBackgroundColor (String, default #ffffff). Background color of the overlay as a fallback if there are no dark or light mode colors defined. Can be used with alpha values, too. (For more information see the 8 digits notation of RGB notation)
    <preference name="LottieBackgroundColor" value="#fff000a3" />
  • LottieWidth (Integer, default 200). Width of the container that's rendering the Lottie animation
    <preference name="LottieWidth" value="750" />
  • LottieHeight (Integer, default 200). Height of the container that's rendering the Lottie animation
    <preference name="LottieHeight" value="750" />
  • LottieRelativeSize (Boolean, default false). Uses width and height values as relative values. Specify them as e.g. 0.3 to have 30%.
    <preference name="LottieRelativeSize" value="true" />
  • LottieFullScreen (Boolean, default false). Renders the animation in full screen. Ignores properties above.
    <preference name="LottieFullScreen" value="true" />
  • LottieLoopAnimation (Boolean, default false). Loops the animation
    <preference name="LottieLoopAnimation" value="true" />
  • LottieAutoHideSplashScreen (Boolean, default false). Hides the Lottie splash screen when the pageDidLoad event fired
    <preference name="LottieAutoHideSplashScreen" value="true" />
  • LottieEnableHardwareAcceleration (Boolean, default false). Android only! Enables hardware acceleration for the animation view. Not really recommended since Lottie decides automatically whether the hardware mode should be used or not.
    <preference name="LottieEnableHardwareAcceleration" value="true" />
    <preference name="LottieScaleType" value="CENTER_CROP" />
  • LottieFadeOutDuration (Double for iOS and Integer for Android, default 0). Duration for the fade out animation. CAUTION: iOS reads this value in SECONDS, but e.g., 0.5 is supported. Android reads this value in MILLISECONDS! the Set to 0 disable the fade out animation.
    <preference name="LottieFadeOutDuration" value="?" /> <!-- CAUTION: iOS reads this value in **SECONDS**, Android reads this value in **MILLISECONDS**>
  • LottieHideAfterAnimationEnd (Boolean, default false). Hides the Lottie splash screen after the animation has been played. Do not use together with LottieAutoHideSplashScreen or LottieLoopAnimation
    <preference name="LottieHideAfterAnimationEnd" value="true" />
  • LottieCacheDisabled (Boolean, default false). Disables caching of animations.
    <preference name="LottieCacheDisabled" value="true" />

Built by (c) Tim Brust and contributors. Released under the MIT license.

cordova-plugin-lottie-splashscreen's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar dtarnawsky avatar github-actions[bot] avatar greenkeeper[bot] avatar krik avatar patrykbojczuk avatar timbru31 avatar yandevde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cordova-plugin-lottie-splashscreen's Issues

Use Xcode 8.x to migrate the code to Swift 3.

Bug report

Showing All Messages
šŸ‘Ž Value for SWIFT_VERSION cannot be empty. (in target 'MyApp')

What steps will reproduce the problem?

Run iOS error

Expected output

What do you see instead?

Log file of the issue/error

error: Value for SWIFT_VERSION cannot be empty. (in target 'MyBelt Professor')

Version information

[email protected] with:
[email protected]
[email protected]
[email protected]
[email protected]

Environment:
OS: darwin
Node: v10.15.3
npm: 6.4.1

Plugins:
cordova-plugin-app-version
cordova-plugin-device
cordova-plugin-ionic-keyboard
cordova-plugin-ionic-webview
cordova-plugin-lottie-splashscreen
cordova-plugin-network-information
cordova-plugin-splashscreen
cordova-plugin-statusbar
cordova-plugin-whitelist
cordova-sqlite-storage

iOS platform:
Xcode 10.1
Build version 10B61

config.xml <<EOF

MyBelt Professor Aplicativo para professor MyBelt. Suporte MyBelt

EOF

package.json <<EOF
{
"name": "MyBeltProfessor",
"version": "0.0.1",
"author": "MyBelt Aplicativos para JiuJitsu",
"homepage": "https://mybelt.com.br/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/forms": "^7.2.2",
"@angular/http": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/app-version": "^5.7.0",
"@ionic-native/core": "^5.0.0",
"@ionic-native/lottie-splash-screen": "^5.7.0",
"@ionic-native/network": "^5.7.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^4.0.0",
"@ionic/storage": "^2.2.0",
"ajv": "^6.9.1",
"cordova-android": "7.1.4",
"cordova-ios": "4.5.5",
"cordova-plugin-app-version": "0.1.9",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.2",
"cordova-plugin-lottie-splashscreen": "^0.6.0",
"cordova-plugin-network-information": "2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sqlite-storage": "3.1.0",
"core-js": "^2.5.4",
"rxjs": "^6.5.0",
"zone.js": "~0.8.29"
},
"devDependencies": {
"@angular-devkit/architect": "~0.12.3",
"@angular-devkit/build-angular": "~0.12.3",
"@angular-devkit/core": "~7.2.3",
"@angular-devkit/schematics": "~7.2.3",
"@angular/cli": "~7.2.3",
"@angular/compiler": "~7.2.2",
"@angular/compiler-cli": "~7.2.2",
"@angular/language-service": "~7.2.2",
"@ionic/angular-toolkit": "~1.3.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~10.12.0",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~8.0.0",
"tslint": "~5.12.0",
"typescript": "~3.1.6"
},
"description": "Aplicativo para professores utilizando o sistema MyBelt de Gerenciamento de Academias",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {},
"cordova-sqlite-storage": {},
"cordova-plugin-app-version": {},
"cordova-plugin-network-information": {},
"cordova-plugin-lottie-splashscreen": {}
},
"platforms": [
"android",
"ios"
]
}
}
EOF

Please provide any additional information below.

Checklist

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

RuntimeException when running on Android

Bug report

What steps will reproduce the problem?

  1. Install this and the Ionic plugin.
  2. Run the app in the emulator (Android 9).

Expected output

A splash screen, followed by the app itself.

What do you see instead?

The app crashes before reaching the splash screen.

Log file of the issue/error

https://gist.github.com/StormPooper/fc33f59a9453e2814f81f1540d64d7f9

Version information

See comments in above gist for ionic info and cordova info output.

Please provide any additional information below.

I've tried both with and without the original splashscreen plugin installed, with a local and a remote lottiefile and with various options from the README, but no difference. We also have both AndroidX plugins installed as per the README. I had no errors adding the plugin and no build issues, the exception happens at runtime.

Checklist

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

local json not working

I am trying to load json from local as below:
this.lottieSplashScreen.show("assets/72.json", false);

I have 72.json file in assets folder.

I am getting promise response success with "OK" but not visible in view.

Same thing working fine with remote url as below :
this.lottieSplashScreen.show("https://assets3.lottiefiles.com/datafiles/MUp3wlMDGtoK5FK/data.json", true);

can anyone facing same issue?

Tests

Examine how tests are written for cordova-plugins (both native side and JS part)

How to add Lottie Framework in bitrise -> XCode?

Bug report

What steps will reproduce the problem?

1.Installed cordova-plugin-lottie-splashscreen and @ionic-native/lottie-splash-screen
2.Made sure, it matches all these versions -> Cordova-ios Version -> 5.1.1 , Cordova -> 9.0.0, Swift Version - 4.2
3. Updated the lottie Animations preferences [LottieAnimationLocation, Swift Version] in config.xml

Expected output

What do you see instead?

Screenshot 2019-12-14 at 2 28 27 AM

Log file of the issue/error

āš ļø ld: directory not found for option '-F/Users/vagrant/Library/Developer/Xcode/DerivedData/Tranzport-gcgwpnomolsykbeafjfulbksxcpu/Build/Intermediates.noindex/ArchiveIntermediates/Tranzport/BuildProductsPath/Release-iphoneos/lottie-ios'
āŒ ld: framework not found Lottie
āŒ clang: error: linker command failed with exit code 1 (use -v to see invocation)
Exit status: 65

Version information

Cordova-ios Version -> 5.1.1 , Cordova -> 9.0.0, Swift Version - 4.2

Please provide any additional information below.

Checklist

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

white screen is shown when splash screen hides in android

First of all, thanks a lot for this wonderful plugin. The issue that i am facing is that after the splash screen hides, only a white screen is shown in android platform, whereas in iOS it's working perfectly, i.e. my app's main page is shown after splash screen hides in iOS. i am using ionic 4.

Kotlin compiler warnings

w: /Users/timbru/work/ume/hello/platforms/android/app/src/main/kotlin/de/dustplanet/cordova/lottie/LottieSplashScreen.kt: (139, 17): Unsafe use of a nullable receiver of type Window?
w: /Users/timbru/work/ume/hello/platforms/android/app/src/main/kotlin/de/dustplanet/cordova/lottie/LottieSplashScreen.kt: (141, 17): Unsafe use of a nullable receiver of type Window?

Not showing in IOS no errors too. but working on android.

Bug report

no erros

What steps will reproduce the problem?

Expected output

the animation

What do you see instead?

nothing

Log file of the issue/error

Version information

?xml version='1.0' encoding='utf-8'?>
widget id="io.beanar.ocho.life" version="0.0.27" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
name>Ocho/name>
description>Ocho App/description>
author email="[email protected]" href="https://www.facebook.com/beanar10/">Beanario Software Team/author>
content src="index.html" />
access origin="" />
allow-intent href="http://
/" />
allow-intent href="https://
/" />
allow-intent href="tel:
" />
allow-intent href="sms:" />
allow-intent href="mailto:
" />
allow-intent href="geo:" />
preference name="ScrollEnabled" value="false" />
preference name="BackupWebStorage" value="none" />
preference name="SplashMaintainAspectRatio" value="true" />
preference name="FadeSplashScreenDuration" value="300" />
preference name="SplashShowOnlyFirstTime" value="false" />
preference name="SplashScreen" value="screen" />
preference name="KeyboardDisplayRequiresUserAction" value="false" />
preference name="SplashScreenDelay" value="100000" />
preference name="ShowSplashScreen" value="true" />
preference name="ShowSplashScreenSpinner" value="false" />
preference name="LottieRemoteEnabled" value="true" />
preference name="LottieAnimationLocation" value=""
preference name="LottieBackgroundColor" value="#fa5103" />
preference name="LottieFullScreen" value="true" />
platform name="android">
allow-intent href="market:
" />
icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
resource-file src="build-extras.gradle" target="app/build-extras.gradle" />
resource-file src="resources/android/adaptiveicon/res/drawable/ic_launcher_background.xml" target="app/src/main/res/drawable/ic_launcher_background.xml" />
resource-file src="resources/android/adaptiveicon/res/mipmap-hdpi/ic_launcher.png" target="app/src/main/res/mipmap-hdpi/ic_launcher.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-hdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-hdpi/ic_launcher_round.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-mdpi/ic_launcher.png" target="app/src/main/res/mipmap-mdpi/ic_launcher.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-mdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-mdpi/ic_launcher_round.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xhdpi/ic_launcher.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xhdpi/ic_launcher_round.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xxhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xxhdpi/ic_launcher.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xxhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xxxhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" />
resource-file src="resources/android/adaptiveicon/res/mipmap-xxxhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png" />
resource-file src="resources/android/icon/drawable-mdpi-icon.png" target="app/src/main/res/drawable-mdpi/icon.png" />
resource-file src="resources/android/icon/drawable-hdpi-icon.png" target="app/src/main/res/drawable-hdpi/icon.png" />
resource-file src="resources/android/icon/drawable-xhdpi-icon.png" target="app/src/main/res/drawable-xhdpi/icon.png" />
resource-file src="resources/android/icon/drawable-xxhdpi-icon.png" target="app/src/main/res/drawable-xxhdpi/icon.png" />
resource-file src="resources/android/icon/drawable-xxxhdpi-icon.png" target="app/src/main/res/drawable-xxxhdpi/icon.png" />
replace-string file="project.properties" find="com.google.android.gms:play-services-auth:11.8.0" replace="com.google.android.gms:play-services-auth:+" />
replace-string file="project.properties" find="com.google.android.gms:play-services-identity:11.8.0" replace="com.google.android.gms:play-services-identity:+" />
replace-string file="project.properties" find="com.google.android.gms:play-services-tagmanager:+" replace="com.google.android.gms:play-services-tagmanager:16.0.8" />
replace-string file="project.properties" find="com.google.firebase:firebase-core:+" replace="com.google.firebase:firebase-core:16.0.8" />
replace-string file="project.properties" find="com.google.firebase:firebase-messaging:+" replace="com.google.firebase:firebase-messaging:17.6.0" />
replace-string file="project.properties" find="com.google.firebase:firebase-config:+" replace="com.google.firebase:firebase-config:16.5.0" />
replace-string file="project.properties" find="com.google.firebase:firebase-perf:+" replace="com.google.firebase:firebase-perf:16.2.5" />
plugin name="cordova-plugin-androidx" spec="^1.0.2" />
plugin name="cordova-plugin-androidx-adapter" spec="^1.0.2" />
/platform>
platform name="ios">
edit-config file="-Info.plist" mode="merge" target="NSCameraUsageDescription">
string>Ocho necesita acceso a tu camara para tomar Fotos/string>
/edit-config>
edit-config file="
-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
string>Ocho necesita acceso a tu librerĆ­a de fotos para seleccionar una/string>
/edit-config>
edit-config file="-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
string>Ocho necesita tu geo-posiciĆ³n para funcionar correctamente/string>
/edit-config>
edit-config file="
-Info.plist" mode="merge" target="NSLocationAlwaysUsageDescription">
string>Ocho necesita tu geo-posiciĆ³n para funcionar correctamente/string>
/edit-config>
edit-config file="-Info.plist" mode="merge" target="NSPhotoLibraryAddUsageDescription">
string>Ocho necesita permiso para guardar fotos/string>
/edit-config>
preference name="KeyboardResize" value="false" />
allow-intent href="itms:
" />
allow-intent href="itms-apps:*" />
icon height="57" src="resources/ios/icon/icon.png" width="57" />
icon height="114" src="resources/ios/icon/[email protected]" width="114" />
icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
icon height="80" src="resources/ios/icon/[email protected]" width="80" />
icon height="120" src="resources/ios/icon/[email protected]" width="120" />
icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
icon height="100" src="resources/ios/icon/[email protected]" width="100" />
icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
icon height="120" src="resources/ios/icon/[email protected]" width="120" />
icon height="180" src="resources/ios/icon/[email protected]" width="180" />
icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
icon height="144" src="resources/ios/icon/[email protected]" width="144" />
icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
icon height="152" src="resources/ios/icon/[email protected]" width="152" />
icon height="167" src="resources/ios/icon/[email protected]" width="167" />
icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
icon height="58" src="resources/ios/icon/[email protected]" width="58" />
icon height="87" src="resources/ios/icon/[email protected]" width="87" />
icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
splash height="1136" src="resources/ios/splash/Default-568h@2xiphone.png" width="640" />
splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
splash height="1536" src="resources/ios/splash/Default-Landscape@2x
ipad.png" width="2048" />
splash height="2048" src="resources/ios/splash/Default-Landscape@ipadpro.png" width="2732" />
splash height="768" src="resources/ios/splash/Default-Landscape
ipad.png" width="1024" />
splash height="2048" src="resources/ios/splash/Default-Portrait@2xipad.png" width="1536" />
splash height="2732" src="resources/ios/splash/Default-Portrait@ipadpro.png" width="2048" />
splash height="1024" src="resources/ios/splash/Default-Portrait
ipad.png" width="768" />
splash height="960" src="resources/ios/splash/Default@2x
iphone.png" width="640" />
splash height="480" src="resources/ios/splash/Defaultiphone.png" width="320" />
splash height="2732" src="resources/ios/splash/Default@2x
universal~anyany.png" width="2732" />
/platform>
plugin name="cordova-plugin-advanced-http" spec="^2.0.8" />
plugin name="cordova-plugin-statusbar" spec="git+https://github.com/apache/cordova-plugin-statusbar.git" />
plugin name="cordova-plugin-ionic-keyboard" spec="^2.1.3" />
plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
plugin name="cordova-plugin-device" spec="^2.0.2" />
plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
plugin name="cordova-plugin-ionic-webview" spec="^4.0.1">
variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
/plugin>
plugin name="com.telerik.plugins.nativepagetransitions" spec="^0.6.5" />
plugin name="cordova-sqlite-storage" spec="^3.2.0" />
plugin name="cordova-plugin-geolocation" spec="^4.0.1" />
plugin name="cordova-plugin-sim" spec="^1.3.3" />
plugin name="cordova-plugin-firebase" spec="2.0.5" />
plugin name="cordova-fabric-plugin" spec="1.1.14-dev">
variable name="FABRIC_API_KEY" value="" />
variable name="FABRIC_API_SECRET" value="" />
/plugin>
plugin name="cordova-plugin-file" spec="6.0.1" />
plugin name="cordova-plugin-platform-replace" spec="1.0.0" />
plugin name="cordova-plugin-navigationbar-color" spec="0.0.8" />
plugin name="ionic-plugin-deeplinks" spec="^1.0.20">
variable name="URL_SCHEME" value="ocholife" />
variable name="DEEPLINK_SCHEME" value="https" />
variable name="DEEPLINK_HOST" value="beanar.io" />
variable name="ANDROID_PATH_PREFIX" value="/" />
variable name="ANDROID_2_PATH_PREFIX" value="/" />
variable name="ANDROID_3_PATH_PREFIX" value="/" />
variable name="ANDROID_4_PATH_PREFIX" value="/" />
variable name="ANDROID_5_PATH_PREFIX" value="/" />
variable name="DEEPLINK_2_SCHEME" value=" " />
variable name="DEEPLINK_2_HOST" value=" " />
variable name="DEEPLINK_3_SCHEME" value=" " />
variable name="DEEPLINK_3_HOST" value=" " />
variable name="DEEPLINK_4_SCHEME" value=" " />
variable name="DEEPLINK_4_HOST" value=" " />
variable name="DEEPLINK_5_SCHEME" value=" " />
variable name="DEEPLINK_5_HOST" value=" " />
/plugin>
plugin name="cordova-plugin-facebook4" spec="5.0.0">
variable name="APP_ID" value="" />
variable name="APP_NAME" value="ocho" />
variable name="FACEBOOK_HYBRID_APP_EVENTS" value="false" />
variable name="FACEBOOK_ANDROID_SDK_VERSION" value="5.0.2" />
/plugin>
plugin name="cordova-plugin-googleplus" spec="^8.0.0">
variable name="REVERSED_CLIENT_ID" value="6666625-" />
variable name="PLAY_SERVICES_VERSION" value="11.8.0" />
/plugin>
plugin name="cordova-plugin-camera" spec="^4.1.0">
variable name="ANDROID_SUPPORT_V4_VERSION" value="27.+" />
/plugin>
engine name="android" spec="^8.0.0" />
engine name="ios" spec="^5.0.0" />
plugin name="cordova-plugin-lottie-splashscreen" spec="^0.5.1" />
/widget>

Plugins:

com.telerik.plugins.nativepagetransitions,cordova-fabric-plugin,cordova-plugin-add-swift-support,cordova-plugin-advanced-http,cordova-plugin-androidx,cordova-plugin-androidx-adapter,cordova-plugin-camera,cordova-plugin-device,cordova-plugin-facebook4,cordova-plugin-file,cordova-plugin-firebase,cordova-plugin-geolocation,cordova-plugin-googleplus,cordova-plugin-ionic-keyboard,cordova-plugin-ionic-webview,cordova-plugin-lottie-splashscreen,cordova-plugin-navigationbar-color,cordova-plugin-platform-replace,cordova-plugin-sim,cordova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-whitelist,cordova-sqlite-storage,ionic-plugin-deeplinks

Error retrieving Android platform information:
Android SDK is not set up properly. Make sure that the Android SDK 'tools' and 'platform-tools' directories are in the PATH variable.

Error: android: Command failed with exit code ENOENT

iOS platform:

Xcode 10.2.1
Build version 10E1001

Please provide any additional information below.

Checklist

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

Action required: Greenkeeper could not be activated šŸšØ

šŸšØ You need to enable Continuous Integration on all branches of this repository. šŸšØ

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didnā€™t receive a CI status on the greenkeeper/initial branch, itā€™s possible that you donā€™t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how itā€™s configured. Make sure it is set to run on all new branches. If you donā€™t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, youā€™ll need to re-trigger Greenkeeperā€™s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integrationā€™s white list on Github. You'll find this list on your repo or organizationā€™s settings page, under Installed GitHub Apps.

Support for lottie json with external images

When I use lottie file that has no external images, it works properly, but when I use lottie file with external images, it's just a blank splash.

Example of not working lottie file.
walking.json
images

  • img1.png
  • img2.png
  • img3.png

Note : I'm sure that the file is working since when I use it in pages it works.

Black BackgroundColor Crashes App

I noticed, either one of the following works without crashing app:

<preference name="LottieBackgroundColor" value="#100000a3" />
<preference name="LottieBackgroundColor" value="#101010a3" />

But neither one of these work. When launching it crashes app.

<preference name="LottieBackgroundColor" value="#000000a3" />
<preference name="LottieBackgroundColor" value="#010101a3" />

Build Error with XCode Legacy Build System

Hi,

first of all, thank you for your work!

I would like to use your plugin with Ionic in a project where I need to use XCode's Legacy Build System for building the app.

For testing I created an empty IonicV3 project with the following command:
ionic start myApp tabs --type=ionic-angular and installed your plugin together with the Ionic-Native wrapper (see https://ionicframework.com/docs/v3/native/lottie-splash-screen/)

Note: The Cordova build will only use the Legacy Build System when doing the following steps:

  • use ionic cordova build ios (will use new build system)
  • open the generated XCode project and set the Build System to Legacy in File -> Workspace Settings
  • run the XCode build
  • repeat ionic cordova build ios: This time it will use the legacy build system

Unfortunately the cordova build using the legacy build system fails with the following error:

The following build commands failed:
        Ld .../TestProject/myApp/platforms/ios/build/emulator/Lottie.framework/Lottie normal x86_64
(1 failure)

The specific error is the following:

**ld: framework not found Lottie
clang: error: linker command failed with exit code 1 (use -v to see invocation)**

FYI: During the installation of the plugin, I get the following warnings:

[!] The MyApp [Debug] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-MyApp/Pods-MyApp.debug.xcconfig. This can lead to problems with the CocoaPods installation
    - Use the $(inherited) flag, or
    - Remove the build settings from the target.

[!] The MyApp [Release] target overrides the LD_RUNPATH_SEARCH_PATHS build setting defined in Pods/Target Support Files/Pods-MyApp/Pods-MyApp.release.xcconfig. This can lead to problems with the CocoaPods installation
    - Use the $(inherited) flag, or
    - Remove the build settings from the target.

I hope you can help me with this!

Thanks in advance!

View destroyed before animation finished

Enhancement proposition

We are using a nice animation which duration is longer than initialization of application šŸ™„
We would like users to see the full animation, but I didn't find any possibility in this plugin to process this.

What steps will reproduce the problem?

  1. Use the cordova-plugin-lottie-splashscreen
  2. Use animation that lasts long (longer than application init)

Proposition

Possibility to add some preference, like

  • LottieMinimumDuration
  • LottieAnimationDuration
  • LottieHideAfter
    that allows to configure the duration of lottie animation.

Installing the Plugin causes Android app to crash

Hi,

I generated a new IonicV3 project using ionic start myApp tabs --type=ionic-angular.
After installing the plugin using cordova plugin add cordova-plugin-lottie-splashscreen the app does not start anymore and crashes instantly.

I used logcat to get some logs:

02-08 08:19:26.951 29741 29741 E AndroidRuntime: FATAL EXCEPTION: main
02-08 08:19:26.951 29741 29741 E AndroidRuntime: Process: io.ionic.starter, PID: 29741
02-08 08:19:26.951 29741 29741 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{io.ionic.starter/io.ionic.starter.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String, org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView, org.apache.cordova.CordovaPreferences)' on a null object reference
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3303)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3411)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread.-wrap12(Unknown Source:0)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:108)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.os.Looper.loop(Looper.java:166)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:7529)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
02-08 08:19:26.951 29741 29741 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CordovaPlugin.privateInitialize(java.lang.String, org.apache.cordova.CordovaInterface, org.apache.cordova.CordovaWebView, org.apache.cordova.CordovaPreferences)' on a null object reference
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.PluginManager.getPlugin(PluginManager.java:171)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.PluginManager.startupPlugins(PluginManager.java:97)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.PluginManager.init(PluginManager.java:86)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.CordovaWebViewImpl.init(CordovaWebViewImpl.java:117)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:149)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:224)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at io.ionic.starter.MainActivity.onCreate(MainActivity.java:39)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:7383)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
02-08 08:19:26.951 29741 29741 E AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3256)

The same happens when using IonicV4.

I hope you can help me with that.
Thanks in advance!

Background splash screen disappear

Hi, I have a question, when splash screen show It has a white background (no background in animation), if I disabled AutoHide it background hide but animation no. how can I show undefined time this background? Thanks you and sorry for my English

AndroidX support

For now I've decided to pin lottie-android to 2.7.0 which is a now AndroidX version.
Future versions all require AndroidX support and therefore this plugin, too, while remaining compatible with cordova-android and non AndroidX plugins.

Different animations to different screen sizes

Hi all, i need to use a fullscreen animation and obviously, i need different lottie animation to handle different screen sizes. Is there any way of doing that?

How can i specify different json files?

Thanks!

not found, app crash

Could you please put an example working, I install the plugin and the application does not open.

Android crash


Yesterday, 2:50 PM on app version 10001
Samsung Galaxy Tab A (2018, 10.5) (gta2xlwifi), Android 9
Report 1 of 1
java.lang.RuntimeException: 
 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3139)
 
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3282)
 
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:78)
 
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:108)
 
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:68)
 
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1970)
 
  at android.os.Handler.dispatchMessage (Handler.java:106)
 
  at android.os.Looper.loop (Looper.java:214)
 
  at android.app.ActivityThread.main (ActivityThread.java:7156)
 
  at java.lang.reflect.Method.invoke (Native Method)
 
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:494)
 
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:975)
Caused by: android.view.WindowManager$BadTokenException: 
 
  at android.view.ViewRootImpl.setView (ViewRootImpl.java:1069)
 
  at android.view.WindowManagerGlobal.addView (WindowManagerGlobal.java:381)
 
  at android.view.WindowManagerImpl.addView (WindowManagerImpl.java:93)
 
  at android.app.Dialog.show (Dialog.java:470)
 
  at de.dustplanet.cordova.lottie.LottieSplashScreen$createView$1.run (LottieSplashScreen.kt:121)
 
  at android.app.Activity.runOnUiThread (Activity.java:6406)
 
  at de.dustplanet.cordova.lottie.LottieSplashScreen.createView (LottieSplashScreen.kt:75)
 
  at de.dustplanet.cordova.lottie.LottieSplashScreen.createView$default (LottieSplashScreen.kt:74)
 
  at de.dustplanet.cordova.lottie.LottieSplashScreen.pluginInitialize (LottieSplashScreen.kt:25)
 
  at org.apache.cordova.CordovaPlugin.privateInitialize (CordovaPlugin.java:58)
 
  at org.apache.cordova.PluginManager.getPlugin (PluginManager.java:171)
 
  at org.apache.cordova.PluginManager.startupPlugins (PluginManager.java:97)
 
  at org.apache.cordova.PluginManager.init (PluginManager.java:86)
 
  at org.apache.cordova.CordovaWebViewImpl.init (CordovaWebViewImpl.java:117)
 
  at org.apache.cordova.CordovaActivity.init (CordovaActivity.java:149)
 
  at org.apache.cordova.CordovaActivity.loadUrl (CordovaActivity.java:224)
 
  at de.unitymedia.d2d.MainActivity.onCreate (MainActivity.java:39)
 
  at android.app.Activity.performCreate (Activity.java:7335)
 
  at android.app.Activity.performCreate (Activity.java:7326)
 
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1275)
 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3119)

iOS - Build fails

When I try to build for iOS it throws this message:

/Users/niconaso/development/workspace/cabal-mobile/platforms/ios/Cabal MoĢvil/Plugins/cordova-plugin-lottie-splashscreen/LottieSplashScreen.swift:1:8: error: no such module 'Lottie'
import Lottie
^

** BUILD FAILED **

The following build commands failed:
CompileSwift normal x86_64 /Users/niconaso/development/workspace/cabal-mobile/platforms/ios/Cabal MoĢvil/Plugins/cordova-plugin-fingerprint-aio/Fingerprint.swift
CompileSwift normal x86_64 /Users/niconaso/development/workspace/cabal-mobile/platforms/ios/Cabal MoĢvil/Plugins/cordova-plugin-lottie-splashscreen/LottieSplashScreen.swift
CompileSwift normal x86_64 /Users/niconaso/development/workspace/cabal-mobile/platforms/ios/Cabal MoĢvil/Plugins/cordova-plugin-lottie-splashscreen/UIColorHelper.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(4 failures)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/niconaso/development/workspace/cabal-mobile/platforms/ios/cordova/build-debug.xcconfig,-workspace,Cabal MoĢvil.xcworkspace,-scheme,Cabal MoĢvil,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/niconaso/development/workspace/cabal-mobile/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/niconaso/development/workspace/cabal-mobile/platforms/ios/build/sharedpch,EMBEDDED_CONTENT_CONTAINS_SWIFT = YES,ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO,LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks",-UseModernBuildSystem=0'
at cli.catch.err (/Users/niconaso/.nvm/versions/node/v8.11.1/lib/node_modules/cordova/bin/cordova:30:15)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
[ERROR] An error occurred while running subprocess cordova.

    cordova build ios exited with exit code 1.
    
    Re-running this command with the --verbose flag may provide more information.

Can you help me?
Thanks!!

Action required: Greenkeeper could not be activated šŸšØ

šŸšØ You need to enable Continuous Integration on all branches of this repository. šŸšØ

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didnā€™t receive a CI status on the greenkeeper/initial branch, itā€™s possible that you donā€™t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how itā€™s configured. Make sure it is set to run on all new branches. If you donā€™t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, youā€™ll need to re-trigger Greenkeeperā€™s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integrationā€™s white list on Github. You'll find this list on your repo or organizationā€™s settings page, under Installed GitHub Apps.

App Crashes in middle of animation in android (randomly)

Plugin works fine with fine with earlier animations used but new animation causes app to carsh during animation. It doesn't happen always.

Github repo of the sample: https://github.com/Divyanshu30/debug-app

Ionic Info:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.7.4
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

cordova (Cordova CLI) : 9.0.0 ([email protected])
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 8 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/divyanshu/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v8.16.0 (/usr/local/Cellar/node@8/8.16.0/bin/node)
npm : 6.4.1
OS : macOS Mojave
Xcode : Xcode 10.3 Build version 10G8

android studio logs

2019-08-28 17:41:16.528 8606-8606/? I/art: Late-enabling -Xcheck:jni
2019-08-28 17:41:16.538 8606-8606/? D/TidaProvider: TidaProvider()
2019-08-28 17:41:16.543 8606-8606/? V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@ebb6469
2019-08-28 17:41:16.548 8606-8613/? I/art: Debugger is no longer active
2019-08-28 17:41:16.548 8606-8613/? I/art: Starting a blocking GC Instrumentation
2019-08-28 17:41:16.573 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
2019-08-28 17:41:16.615 8606-8606/? I/CordovaLog: Changing log level to DEBUG(3)
2019-08-28 17:41:16.615 8606-8606/? I/CordovaActivity: Apache Cordova native platform version 8.0.0 is starting
2019-08-28 17:41:16.615 8606-8606/? D/CordovaActivity: CordovaActivity.onCreate()
2019-08-28 17:41:16.628 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
2019-08-28 17:41:16.633 8606-8606/? I/WebViewFactory: Loading com.android.chrome version 75.0.3770.101 (code 377010137)
2019-08-28 17:41:16.687 8606-8606/? I/cr_LibraryLoader: Time to load native libraries: 4 ms (timestamps 5420-5424)
2019-08-28 17:41:16.694 8606-8606/? W/ResourceType: No package identifier when getting name for resource number 0x00000000
2019-08-28 17:41:16.700 8606-8606/? D/AccessibilityManager: current package=io.ionic.starter, accessibility manager mIsFinalEnabled=true, mOptimizeEnabled=false, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
2019-08-28 17:41:16.703 8606-8606/? I/chromium: [INFO:library_loader_hooks.cc(50)] Chromium logging enabled: level = 0, default verbosity = 0
2019-08-28 17:41:16.704 8606-8606/? I/cr_LibraryLoader: Expected native library version number "75.0.3770.101", actual native library version number "75.0.3770.101"
2019-08-28 17:41:16.717 8606-8606/? I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
2019-08-28 17:41:16.721 8606-8606/? W/ResourceType: Failure getting entry for 0x7f130537 (t=18 e=1335) (error -2147483647)
2019-08-28 17:41:16.806 8606-8606/? D/EgretLoader: EgretLoader(Context context)
2019-08-28 17:41:16.808 8606-8606/? D/EgretLoader: The context is not activity
2019-08-28 17:41:16.809 8606-8606/? D/IonicWebViewEngine: Ionic Web View Engine Starting Right Up 1...
2019-08-28 17:41:16.825 8606-8606/? D/SystemWebViewEngine: CordovaWebView is running on device made by: Xiaomi
2019-08-28 17:41:16.832 8606-8606/? D/PluginManager: init()
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH3 /odm/lib64/hw/gralloc.qcom.so
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.qcom.so
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH1 /system/lib64/hw/gralloc.qcom.so
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH3 /odm/lib64/hw/gralloc.msm8953.so
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH2 /vendor/lib64/hw/gralloc.msm8953.so
2019-08-28 17:41:16.862 8606-8606/? E/HAL: PATH1 /system/lib64/hw/gralloc.msm8953.so
2019-08-28 17:41:16.869 8606-8606/? D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)
2019-08-28 17:41:16.879 8606-8634/? W/cr_media: Requires BLUETOOTH permission
2019-08-28 17:41:16.883 8606-8649/? E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
2019-08-28 17:41:16.883 8606-8649/? I/Adreno: QUALCOMM build : 01d2d27, I3d52eaf367
Build Date : 12/10/16
OpenGL ES Shader Compiler Version: XE031.09.00.03
Local Branch :
Remote Branch :
Remote Branch :
Reconstruct Branch :
2019-08-28 17:41:16.886 8606-8606/? D/CordovaActivity: Started the activity.
2019-08-28 17:41:16.893 8606-8606/? D/CordovaActivity: Resumed the activity.
2019-08-28 17:41:16.931 8606-8646/? I/OpenGLRenderer: Initialized EGL, version 1.4
2019-08-28 17:41:16.931 8606-8646/? D/OpenGLRenderer: Swap behavior 1
2019-08-28 17:41:16.947 8606-8606/? W/ContentCatcher: Failed to notify a WebView
2019-08-28 17:41:16.955 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2019-08-28 17:41:16.955 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
2019-08-28 17:41:16.961 8606-8649/? W/Utils: could not parse long range '175-174'
2019-08-28 17:41:16.963 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2019-08-28 17:41:16.963 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
2019-08-28 17:41:16.965 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706433 for video/avc
2019-08-28 17:41:16.965 8606-8649/? W/VideoCapabilities: Unrecognized profile 2130706434 for video/avc
2019-08-28 17:41:16.967 8606-8649/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
2019-08-28 17:41:16.967 8606-8645/? W/LOTTIE: Animation contains merge paths. Merge paths are only supported on KitKat+ and must be manually enabled by calling enableMergePathsForKitKatAndAbove().
2019-08-28 17:41:16.968 8606-8649/? W/VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
2019-08-28 17:41:16.983 8606-8649/? W/VideoCapabilities: Unsupported mime video/mp4v-esdp
2019-08-28 17:41:16.989 8606-8611/? I/art: Do partial code cache collection, code=30KB, data=28KB
2019-08-28 17:41:16.989 8606-8611/? I/art: After code cache collection, code=30KB, data=28KB
2019-08-28 17:41:16.989 8606-8611/? I/art: Increasing code cache capacity to 128KB
2019-08-28 17:41:16.998 8606-8649/? I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
2019-08-28 17:41:17.046 8606-8606/? D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)
2019-08-28 17:41:17.064 8606-8606/? D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)
2019-08-28 17:41:17.077 8606-8636/? D/SERVER: Handling local request: http://localhost/
2019-08-28 17:41:17.098 8606-8606/? D/CordovaWebViewImpl: onPageDidNavigate(http://localhost/)
2019-08-28 17:41:17.114 8606-8636/? D/SERVER: Handling local request: http://localhost/runtime.js
2019-08-28 17:41:17.117 8606-8636/? D/SERVER: Handling local request: http://localhost/polyfills.js
2019-08-28 17:41:17.120 8606-8636/? D/SERVER: Handling local request: http://localhost/styles.js
2019-08-28 17:41:17.121 8606-8617/? I/art: Background sticky concurrent mark sweep GC freed 42266(2MB) AllocSpace objects, 8(160KB) LOS objects, 33% free, 12MB/17MB, paused 9.856ms total 41.218ms
2019-08-28 17:41:17.123 8606-8636/? D/SERVER: Handling local request: http://localhost/cordova.js
2019-08-28 17:41:17.125 8606-8636/? D/SERVER: Handling local request: http://localhost/vendor.js
2019-08-28 17:41:17.127 8606-8636/? D/SERVER: Handling local request: http://localhost/main.js
2019-08-28 17:41:17.438 8606-8606/? D/JsMessageQueue: Set native->JS mode to EvalBridgeMode
2019-08-28 17:41:17.453 8606-8637/? D/SERVER: Handling local request: http://localhost/cordova_plugins.js
2019-08-28 17:41:17.467 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-statusbar/www/statusbar.js
2019-08-28 17:41:17.469 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-device/www/device.js
2019-08-28 17:41:17.471 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-splashscreen/www/splashscreen.js
2019-08-28 17:41:17.473 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-ionic-webview/src/www/util.js
2019-08-28 17:41:17.475 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-ionic-keyboard/www/android/keyboard.js
2019-08-28 17:41:17.484 8606-8630/? D/SERVER: Handling local request: http://localhost/plugins/cordova-sqlite-storage/www/SQLitePlugin.js
2019-08-28 17:41:17.484 8606-8632/? D/SERVER: Handling local request: http://localhost/plugins/cordova-plugin-lottie-splashscreen/dist/www/lottie-splashscreen.js
2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: Do partial code cache collection, code=61KB, data=55KB
2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: After code cache collection, code=61KB, data=55KB
2019-08-28 17:41:17.737 8606-8611/io.ionic.starter I/art: Increasing code cache capacity to 256KB
2019-08-28 17:41:18.738 8606-8606/io.ionic.starter D/SystemWebChromeClient: http://localhost/vendor.js: Line 54506 : Angular is running in the development mode. Call enableProdMode() to enable the production mode.
2019-08-28 17:41:18.738 8606-8606/io.ionic.starter I/chromium: [INFO:CONSOLE(54506)] "Angular is running in the development mode. Call enableProdMode() to enable the production mode.", source: http://localhost/vendor.js (54506)
2019-08-28 17:41:18.744 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/common.js
2019-08-28 17:41:18.746 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/18.js
2019-08-28 17:41:18.759 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/9.js
2019-08-28 17:41:18.768 8606-8606/io.ionic.starter D/SystemWebChromeClient: http://localhost/vendor.js: Line 83901 : Ionic Native: deviceready event fired after 801 ms
2019-08-28 17:41:18.768 8606-8606/io.ionic.starter I/chromium: [INFO:CONSOLE(83901)] "Ionic Native: deviceready event fired after 801 ms", source: http://localhost/vendor.js (83901)
2019-08-28 17:41:18.781 8606-8606/io.ionic.starter D/CordovaWebViewImpl: onPageFinished(http://localhost/)
2019-08-28 17:41:18.786 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/pages-homepage-homepage-module.js
2019-08-28 17:41:18.815 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/0.js
2019-08-28 17:41:18.816 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/2.js
2019-08-28 17:41:19.013 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/8.js
2019-08-28 17:41:19.016 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/6.js
2019-08-28 17:41:19.018 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/4.js
2019-08-28 17:41:19.021 8606-8637/io.ionic.starter D/SERVER: Handling local request: http://localhost/3.js
2019-08-28 17:41:19.028 8606-8636/io.ionic.starter D/SERVER: Handling local request: http://localhost/assets/icon/favicon.png
2019-08-28 17:41:19.053 8606-8668/io.ionic.starter I/App: WARNING: Back Button Default Behavior will be overridden. The backbutton event will be fired!
2019-08-28 17:41:19.510 8606-8646/io.ionic.starter A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x4 in tid 8646 (RenderThread)
2019-08-28 17:41:20.796 8606-8606/io.ionic.starter I/Choreographer: Skipped 76 frames! The application may be doing too much work on its main thread.

Device : Xiaomi Redmi note 4 Android 7

  • I have attached necessary information like a screenshot, example project or videos (git repo)

Refactor JS commands

Instead of specifying every argument individually, allow passing e.g. an options object.

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.