mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-01 00:00:20 +08:00
26 lines
787 B
TypeScript
26 lines
787 B
TypeScript
import { Component } from '@angular/core';
|
|
import { Platform } from 'ionic-angular';
|
|
import { StatusBar } from '@ionic-native/status-bar';
|
|
import { SplashScreen } from '@ionic-native/splash-screen';
|
|
import { JPush } from '@jiguang-ionic/jpush';
|
|
|
|
import { HomePage } from '../pages/home/home';
|
|
@Component({
|
|
templateUrl: 'app.html'
|
|
})
|
|
export class MyApp {
|
|
rootPage:any = HomePage;
|
|
|
|
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, jpush: JPush) {
|
|
platform.ready().then(() => {
|
|
// Okay, so the platform is ready and our plugins are available.
|
|
// Here you can do any higher level native things you might need.
|
|
statusBar.styleDefault();
|
|
splashScreen.hide();
|
|
|
|
jpush.init();
|
|
jpush.setDebugMode(true);
|
|
});
|
|
}
|
|
}
|