I'm currently developing a Ionic App. On one Page i have a Google Map and want to show a Button when the Map is ready, so i introduced a variable, that is set to true
when the Google Maps onReady
is called. This works fine for Android, but on iOS it does not work (i think because the internal WebView is different). When i then interact with the Page, for example open the Side Menu, the whole View updates and the Button show up.
Thinks i already tried after i set the variable to true
:
// Detect Changes
this.changeDetectionRef.detectChanges();
// Mark View as dirty
ɵmarkDirty(this);
// Try to set the Variable in NgZone:
this.zone.run(() => {
variable = true;
});
Any Ideas why the View isn't updating?
EDIT: I just noticed it is only on App Startup (it's the main Page). When i go to another Page and the go back, it works