Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 228535 articles
Browse latest View live

CSS Animations not firing on page load

$
0
0

I’ve got an Ionic 4.5.0 app running on Angular and Capacitor, with a few very resource-intensive pages. I’ve tried to implement a few fade-in animations on these pages, and they only fire intermittently, often staying stuck at opacity:0. This seems to happen more frequently on older, slower devices, and with animations that fire on page load. I’ve tried implementing these animations both as pure CSS and within the angular animation library, and both get similar results.

Has anyone dealt with a similar problem? Info and sample code below.

Ionic:

   Ionic CLI                     : 5.2.1 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.5.0
   @angular-devkit/build-angular : 0.12.4
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.2.4
   @ionic/angular-toolkit        : 2.0.0

Capacitor:

   Capacitor CLI   : 1.1.0
   @capacitor/core : 1.1.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : ios 5.0.1
div {
	animation: fadein .2s ease-in;
	animation-fill-mode: both;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@Component({
	selector: 'app-home',
	templateUrl: 'home.page.html',
	styleUrls: ['home.page.scss'],
	animations: [
		trigger('fadeInOutDelay', [
			transition(':enter', [   // :enter is alias to 'void => *'
			  style({opacity:0}),
			  animate('200ms 300ms ease-out', style({opacity:1})) 
			]),
			transition(':leave', [   // :leave is alias to '* => void'
			  style({opacity:1}),
			  animate('200ms ease-out', style({opacity:0})) 
			])
		  ])
	]	  
})

	<div [@fadeInOut] *ngIf="!fade">Fade this in and out</div>


Cant build my App with cordova build (Failure)

$
0
0

Hi Toufiq? Did you find a solution? I’m stuck with the same issue

Cant build my App with cordova build (Failure)

$
0
0

hi afelipelli,
please follow the below steps for me the issue is resolved by following this steps

1)ionic cordova platform rm android

2)ionic cordova plugin rm cordova-plugin-firebase

3)cordova plugin add https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue

4)cordova plugin add cordova-android-support-gradle-release

5)ionic cordova platform add android@7.0.0

6)com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true //Add this line in platform/android/app/build.gradle

  1. change the following in project.properties
    cordova.system.library.4=com.google.android.gms:play-services-tagmanager:16.0.8
    cordova.system.library.5=com.google.firebase:firebase-core:16.0.8
    cordova.system.library.6=com.google.firebase:firebase-messaging:17.5.0
    cordova.system.library.7=com.google.firebase:firebase-config:16.4.1
    cordova.system.library.8=com.google.firebase:firebase-pref:16.2.4
    cordova.system.library.9=com.google.android.gms:play-services-analytics:16.0.8

hope this will help you.

Ionic Hub crashes

$
0
0

When I create a new empty app and navigate to “Apps” in the Dev Hub, then click on the App, the hub just crashes.
— Update:
It now crashes even when clicking on “Apps”.

Ionic 4 Tab to page then back to Tab did not trigger ionViewWillEnter

$
0
0

I have an small application where user can edit their account and after edit user route back to my account page.

Situation:

My account Tab > Edit Account Page > Save and Route Back to My account Tab*

When User redirect to My account page none of the life cycle event trigger in ionic 4

Screenshoot: http://prntscr.com/oatlru [edit account page code ] , http://prntscr.com/oatlvz [My account page]

Cant build my App with cordova build (Failure)

$
0
0

Thanks, Toufiq23!

I followed those steps and now I’m getting a different error. Not sure if it’s related but thought I’d put here in case you have any ideas:

Failed to execute aapt

com.android.ide.common.process.ProcessException: Failed to execute aapt

at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)

at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)

Ionic 4 Tab to page then back to Tab did not trigger ionViewWillEnter

$
0
0

Hi Please go through it. It may help you
In summary, these are the events:

  • ionViewDidLoad : Fired only when a view is stored in memory . This event is NOT fired on entering a view that is already cached. It’s a nice place for init related tasks.
  • ionViewWillEnter : It’s fired when entering a page, before it becomes the active one. Use it for tasks you want to do every time you enter in the view (setting event listeners, updating a table, etc.).
  • ionViewDidEnter : Fired when entering a page, after it becomes the active page . Quite similar to the previous one.
  • ionViewWillLeave : Fired when you leave a page, before it stops being the active one. Use it for things you need to run every time you are leaving a page (deactivate event listeners, etc.).
  • ionViewDidLeave : Fired when you leave a page, after it stops being the active one. Similar to the previous one.
  • ionViewWillUnload : Fired when a view is going to be completely removed (after leaving a non-cached view).

Reference : https://ionicframework.com/blog/navigating-lifecycle-events/

Xcode-select

$
0
0

Thanks…Same solution worked for me.


Cannot find module "path to feature module" when lazy loading

$
0
0

Sadly, I opted not to use lazy loading.

Alternatively, if you’re starting on a new project, I recommend using a higher version of ionic (v4 maybe?) rather than ionic v3.

Why I won't create apk please help me

Adding Ionic project with existing angular web app

$
0
0

Hi Team,

I have created an angular workspace with library and a web application. I would like to add an Ionic application with in the existing workspace. Can anyone guide me how can I add an new Ionic Angular application with existing angular workspace.

I have created workspace, library and angular web application using angular cli commands.

Thanks

How to use rating star in ionic 4?

$
0
0

thanks but
ion-icon {
color: white;
font-size: 20px !important;
I am Using This but Star Innercolour not changed.

Ionic 4 Tab to page then back to Tab did not trigger ionViewWillEnter

$
0
0

None of the event work when back from page to tab

my my-account tab

ionViewWillEnter() {
    this.getUser();
    console.log('ionViewWillEnter ')
  }

    ionViewDidLoad() {
    console.log('ionViewDidLoad ')
    }
    ionViewDidEnter() {
    console.log('ionViewDidEnter ')
    }
    ionViewWillLeave() {
    console.log('ionViewWillLeave  ')
    }
    ionViewDidLeave() {
    console.log('ionViewDidLeave   ')
    }
    ionViewWillUnload() {
    console.log('ionViewWillUnload    ')
    }

Check the bellow demo

How to add eye-icon inside input field?

Ionic 4 Cordova - Run Android Firebase error all of a sudden


Ion-list automatically orders list alphabetically

$
0
0

ion-list automatically orders list alphabetically

Ionic 4 Tab to page then back to Tab did not trigger ionViewWillEnter

$
0
0

I may be wrong.
What I understood is.

Your tabs is in one container .
Now when you clicked on Edit Profile you are moving from one container to another container.
So once you come back try to call methods in container and not in tabs.

Page Lifecycle & SetTimeOut

$
0
0

Buddy, try this -

ionViewWillLeave() {
clearInterval(this.task);
}

ionViewDidEnter() {
this.task = setInterval(() => {
this.getMsg(false);
}, 3000);
}

Working for me.

How to show the ALT content in an Inoc4 PWA?

$
0
0

Hi,
is there a way on an Ionic4 PWA to show the description of a button or of an icon (when the user goes with the mouse over it) with the ALT tag?
Probably it works only with images.

Or there are other ways to do this?

            <ion-col size="3">
              <ion-button expand="full" (click)="changeUserRole()" color="warning" alt="Change the role of the user">
                <ion-icon name="ribbon"  alt="Change the role of the user"></ion-icon>
              </ion-button>
            </ion-col>

Thank you very much

cld

Can anyone get @TeamHive/capacitor-email to work?

$
0
0

This is a capacitor email plugin. I can’t get the demo to work at all in Android Studio 3.4.1 and @ionic/angular 4.0.0-beta.7 and @capacitor/core 1.1.0. I get 5 build errors like

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :capacitor-android-plugins.

If I try to use the sample code in a starter Ionic app, I get a runtime error:
E/Capacitor/Plugin/Console: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'requestPermission' of undefined

Has anyone got this capacitor plugin to work at all?

Viewing all 228535 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>