Encountering an issue with lifecycle hooks not functioning properly in Safari mobile and iOS app.
NgOnInit and ionViewDidLoad, along with other lifecycle hooks, are working on desktop and Android platforms but not on the iOS side, even when visiting the page for the first time.
Oddly enough, tapping/clicking anywhere on the screen triggers everything to load as desired.
Additionally, upon navigating to the page again or reloading it, all content appears as intended.
Any suggestions? No errors are being reported.
The task involves fetching data from Back4App's database and displaying it upon page opening.
TypeScript
ngOnInit() {
this.unhide();
}
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>
As mentioned, everything works fine on Android and Chrome. Any recommendations for fixes or alternative approaches? Using Ionic 5 and Angular 8.