Ionic refresher doesn't work on iOS deploy


#1

Hey everyone, I’m facing some issues when I try to deploy on ios platform.
I’m using ionic refresher on my ionic app. When I deploy it on an android and browser platform it works as expected but on IOS it doesn’t work (the loading animation doesn’t even appear). This is the code:

app.component.ts file:

doRefresh(refresher) {
    setTimeout(() => {
      this.mostrarPaginasDesdeUsuario();
      refresher.complete();
    }, 1000);
  } 

mostrarPaginasDesdeApp(interesesDesdeApp) {
    this.pages = [];
    this.pages = [{ title: 'Inicio', component: 'HomeTabsPage', icon: 'home' }];
    if (interesesDesdeApp != undefined) {
      for (let i = 0; i < interesesDesdeApp.length; i++) {
        if (interesesDesdeApp[i] == "tour") this.pages.push({ title: 'Tour Virtual', component: 'AQuienAcudirPage', icon: 'pin' });
        if (interesesDesdeApp[i] == "quien") this.pages.push({ title: '¿A quién acudir?', component: 'AQuienAcudirPage', icon: 'contact' });
        if (interesesDesdeApp[i] == "otros") this.pages.push({ title: 'Otros Servicios', component: 'OtrosServiciosPage', icon: 'information-circle' });
        if (interesesDesdeApp[i] == "restaurantes") this.pages.push({ title: 'Restaurantes', component: 'RestaurantesPage', icon: 'restaurant' });
        if (interesesDesdeApp[i] == "sitios") this.sitiosDeInteres = true;
        else this.sitiosDeInteres = false;
      }
    }
  }

app.html

<ion-content>
    <ion-refresher (ionRefresh)="doRefresh($event)">
      <ion-refresher-content pullingIcon="arrow-dropdown" refreshingSpinner="circles" refreshingText="Actualizando...">
      </ion-refresher-content>
    </ion-refresher>
    <ion-list>
      <ion-item *ngFor="let page of pages" (click)="openPage(page.component)" menuClose>
        <ion-icon item left name="{{page.icon}}"> </ion-icon>
        {{page.title}}
      </ion-item>
      <ion-list id="sidenav" *ngIf="sitiosDeInteres">
        <button ion-item (click)="menuItemHandler()">
          <ion-icon item left name="map"> </ion-icon>
          Sitios de Interés
        </button>
        <ion-item-group submenu-item *ngIf="showSubmenu">
          <ion-item *ngFor="let item of items" (click)="openPage(item.component)" menuClose>
            <ion-icon item left name="{{item.icon}}"> </ion-icon>
            {{item.title}}
          </ion-item>
        </ion-item-group>
      </ion-list>
    </ion-list>
  </ion-content>

Thanks in advance!


#2

Same problem here, did anyone experienced this ?


#3

Update : nobody :frowning: ?


#4

Deleting ios folder seems to resolve it.