I have a signup page (signup.ts) which takes a ToastController in the constructor. I deployed the app in Ionic View and when I access it in device, the page does not seem to load or it does not redirect me to signup page (from home page). So I decided to remove(one by one) some of this injected dependencies in the signup page and comment out any reference to this dependency. So I started removing the ToastController and deploy the app. I tested in device and I am able to navigate to signup page.
Is there anything I need to configure the ToastController?
How exactly do you think someone can answer your question without seeing any of your code? If you use ToastController consistent with the code examples in the Ionic API, it will work.
FYI if you use code format, it’s much easier to read your posts.
EDIT: I haven’t checked the source. Is there a working setMessage command? It isn’t in the API.
I have a toastHelper() private method that takes a message string as input, and creates and presents the toast all at once. You might try things that way – make everything more modular. Also, good style: use let, don’t use var. Actually, you probably should never use var ever again, since ES2015.
Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.