Error message after call of menuController.open() on ion-menu: "ASSERT: can...
Hi, thanks for your reply. To 1.: I am using the open() method of the const “menuController”, not the open() method of the ion-menu component I’m asking for, like it’s described in the documentation....
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Ok yes I was looking at the wrong open() For the menu controller does it need to be async? Also should onMounted() be independent from setup() per composition API? Again im not a vue expert
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
The open() of menu controller has no need to be async, but maybee in the future … onMounted() is a method used by the “clean” and new composition api of Vue. Under the hood it still uses the separated...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Can you copy and paste the whole error just to see if there’s anything hints?
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
I found this from ionic 4.x Assert: cannot be animating Assert is a unit test keyword so it could be in the test files under the hood that’s throwing that
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
(post deleted by author)
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
This means, that’s an issue in the test units of the framework, I can keep the way over menuController’s open() method, and at least I can “ignore” the error message, am I right? Since I don’t have...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
For now, ignoring seems ok if it’s not throwing off your expected outcome But I would highly recommend bringing it up as an issue on the GitHub, as it seems like a test issue on their end, as well as...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Just another hint, just for fun: I tried to “click” an ion-menu-button element programatically, but the same error appears, when I don’t wait for 25ms with a setTimeout(), before calling the click()...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
What if you trying importing platform and wrap the first open() call with platform.ready().then(() =>{}) I’m not 100% on the vue syntax… I wonder if this would achieve the same timing result but...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Good point. There is no platform.ready() for VueJs like in Angular … see Platform | Ionic Documentation The closest thing like platform.ready() is in Vue’s main.ts, like router.isReady().then(() =>...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Maybe try it in ionViewDidEnter()? Seems like mounted() is definitely too soon if setTimeout() is handling it too
View ArticleDo not disturb mode (iOS)
Is it possible to detect if iOS device is in Do Not Disturb / Sleep / Work mode etc ? I’m currently using Ionic 6 and Capacitor.
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Yes I tried it in ionViewDidEnter() already, but even here I would have to use the timeout to wait for the “animation” … So this is not the point I should look for. I think I should somehow get an...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
To everyone, especially to @jjev so far, thank you for your audience If you could point me to where I can find and how to access the open(animated: boolean) method, mentioned in the ion-menu...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Using open(animated?: boolean) requires the template ref like I was talking about earlier, and calling open directly on that template ref instead of a controller
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
TL;DR Use document.querySelector(‘ion-menu’)?.open(false); if you want to show ion-menu on the start of your app without running into error messages or animation timing issues and without usage of the...
View ArticleError message after call of menuController.open() on ion-menu: "ASSERT: can...
Ok nice the optional chaining maybe helped I wasn’t sure about using the controller with vue as I’d only seen it in angular Glad you got it working!
View ArticleCould not find a valid GoogleService-Info.plist in your project
Hello, I am having trouble building my iOS app using Ionic Appflow. I am successfully able to build my Andorid app, but my iOS app keeps failing with the below error: Terminating app due to uncaught...
View Article