Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Lifecycle hooks in safari mobile and ios app don't work

$
0
0

None of the lifecycle hooks work in safari mobile or ios app.

NgOnInit and ionViewDidLoad and any of the other lifecycle hooks, they all work on the desktop and android app, but not in the ios side. Even if its the very first time visiting the page.

But, if i tap/click anywhere on the screen, then everything loads in exactly as desired.

any suggestions? I’m not receiving any errors.

I’m grabbing some info from back4apps’s database, and just trying to display it when the page opens.

typescript

async ngOnInit() {
  this.unhide();
  }

async unhide() {
this.news.get("deEygHXCR9").then((gameScore) => {
    this.memberList = gameScore.get("announcements");
  }, (error) => {
  });
}

html

<ion-item class = "backColor2">
          <ion-textarea class="textAreaHeight" readonly="true" auto-grow="true" type="text" name="memberList" [(ngModel)]="memberList" ></ion-textarea>
          </ion-item>

Like I said, android and chrome work fine. Any suggestions for fixes or alternative methods? I’m using ionic 5 and angular 8

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



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