Hello,
I’m trying to use HockeyApp in my app to push updates directly without having to send an email every time.
When I put it in my app, nothing happens
here is my ionic info
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.9
Cordova Platforms : android 7.0.0 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
System:
ios-deploy : 1.9.2
Node : v8.11.3
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
When using Xcode and tapping on the button “force crash”, logs display :
THREAD WARNING: ['HockeyApp'] took '11.336182' ms. Plugin should use a background thread.
Here is my app.components.ts
constructor(public platform: Platform,
public statusBar: StatusBar,
public splashScreen: SplashScreen,
public api: ApiProvider,
private settings: SettingsProvider,
private app: App, hockeyapp: HockeyApp,
) {
this.settings.getActiveTheme().subscribe(val => this.selectedTheme = val);
hockeyapp.start(null, '--myappid--', false, true);
this.initializeApp();
//So app doesn't close when hockey app activities close
//This also has a side effect of unable to close the app when on the rootPage and using the back button.
//Back button will perform as normal on other pages and pop to the previous page.
platform.registerBackButtonAction(() => {
let nav = app.getRootNav();
if (nav.canGoBack()) {
nav.pop();
} else {
nav.setRoot(this.rootPage);
}
});
}
settings.html
<button ion-item (click)="checkHockeyAppUpdates()">
Update
</button>
<button ion-item (click)="forceCrash()">
Force Crash
</button>
And finally settings.ts
public checkHockeyAppUpdates() {
this.hockeyApp.checkHockeyAppUpdates();
}
public forceCrash() {
this.hockeyApp.forceCrash();
}
Does anybody know how to make it work ?
Thank you