© 2018, Drifty, Inc. All rights reserved. Reproduction and distribution of this material is prohibited.
Monitor
Error reporting
Deploy
Live updates
Package
Native builds
Package
Native builds
Your Local Ionic Project
Your Local Ionic Project
git push ionic master
Your Local Ionic Project
git push ionic master
Your Local Ionic Project
git push ionic master
Your Local Ionic Project
git push ionic master
.ipa
.apk
Your Local Ionic Project
git push ionic master
.ipa
.apk
Your Local Ionic Project
git push ionic master
.ipa
.apk
Your Local Ionic Project
git push ionic master
.ipa
.apk
Monitor
Error reporting
Pinpoint and resolve runtime errors
Track issues in development and catch bugs before they ship
Track issues in production
npm install @ionic/pro
import { BrowserModule } from "@angular/platform-browser";
import { ErrorHandler, NgModule, Injectable, Injector } from "@angular/core";
import { SplashScreen } from "@ionic-native/splash-screen";
import { StatusBar } from "@ionic-native/status-bar";
import { Pro } from "@ionic/pro";
import { IonicApp, IonicErrorHandler, IonicModule } from "ionic-angular";
import { MyApp } from "./app.component";
import { HomePage } from "../pages/home/home";
// This is the Pro app ID and version (from config.xml)
Pro.init("d2c05e3f", { appVersion: "0.0.1" });
// An ErrorHandler class you provide.
@Injectable()
export class MyErrorHandler implements ErrorHandler {
ionicErrorHandler: IonicErrorHandler;
constructor(injector: Injector) {
try {
this.ionicErrorHandler = injector.get(IonicErrorHandler);
} catch (e) {
console.log(e);
// Unable to get the IonicErrorHandler provider, ensure IonicErrorHandler has been added to the providers list below
}
}
handleError(err: any): void {
Pro.monitoring.handleNewError(err);
// Remove this if you want to disable Ionic's auto exception handling in development mode.
this.ionicErrorHandler && this.ionicErrorHandler.handleError(err);
}
}
@NgModule({
declarations: [MyApp, HomePage],
imports: [BrowserModule, IonicModule.forRoot(MyApp)],
bootstrap: [IonicApp],
entryComponents: [MyApp, HomePage],
providers: [
StatusBar,
IonicErrorHandler,
[{ provide: ErrorHandler, useClass: MyErrorHandler }],
SplashScreen
]
})
export class AppModule {}
npm install @ionic/pro
Pro.monitoring.exception(errorObject)
Pro.monitoring.log(msg, options)
Full instructions are found at
https://ionicframework.com/docs/pro/basics/getting-started/#pro-client-setup
Deploy
Live updates
Deliver hot code bug fixes in real time