triniwiz / nativescript-toasty

:bread: NativeScript toast plugin :bread:
Other
44 stars 21 forks source link

[iOS] Not working in .then() after closing modal #14

Open 14520582 opened 5 years ago

14520582 commented 5 years ago

Platform: ios Version: 5.2.0

lostation commented 4 years ago

Any progress ? Cause get same behavior here...

Plaform: iOS Version: 6.4.1

It seems the created modal has its own page context then override in a certain way the global anchor. Really annoying.

lostation commented 4 years ago

Adding setTimeout(() => { this.toastsService.setMsg('blablabla'); }, 800);

from within the modal itself or from the returned then() is seems to do the trick... a bit delayed but it works.

lostation commented 4 years ago

A too low timing makes it not working... at least 750...

lochstar commented 3 years ago

Add the following option for NS8.

anchorView: getRootLayout().nativeView