I'm using Ionic 3 and working on developing my app. I added in code for Ionic AppFlow error reporting/monitoring which works great, but I don't want it to run on local so I'm not flooding my email inbox while making a large number of changes.
Ideally, this would only run on production where it matters, since I can see errors in real time using console while developing. How can I disable monitoring on local only?
You can do it very easily for Ionic 3 app like so.
handleError(err: any): void {
IonicPro.monitoring.handleNewError(err); // Remove this if you want to disable Ionic's auto exception handling in development mode.
this.ionicErrorHandler && this.ionicErrorHandler.handleError(err);
}
Ref: Ionic Monitor