I’ve followed all of the steps in the docs (https://ionicframework.com/docs/native/toast/), and I just get an error when this.toast.show(...) is called. What other hoops do I need to jump through to get this working?
undefined is not an object (evaluating 'this.toast.show')
I also ran ionic doctor check and it updated my plugins and app-scripts, and it still gets the same error.
I also cannot get the native NativeAudio plugin to work. I figured I would get the simpler Toast plugin working first, and see if the same solution applies to that.
Not sure why I didn’t catch this before. It was a scope/closure issue. I was trying to use this.toast in an interval function where it wasn’t available. So I am now passing in the toast like this: