what you have try? share your code sample
import { Push, PushObject, PushOptions } from ‘@ionic-native/push’;
initializeApp() {
var lastTimeBackPress = 0;
var timePeriodToExit = 2000;
this.platform.ready().then(() => {
this.nativeStorage.getItem(‘loginInfo’)
.then((loginInfo) => {
this.rootPage = loginInfo ? HomePage : LoginPage;
});
this.statusBar.styleDefault();
this.splashScreen.hide();
this.pushSetup();
});
pushSetup(){
const options: PushOptions = {
android: {
senderID:‘10488329154’,
sound: ‘true’
},
ios: {
alert: ‘true’,
badge: true,
sound: ‘false’
}
};
const pushObject: PushObject = this.push.init(options);
// pushObject.on('notification').subscribe((notification: any) => console.log('Received a notification', notification));
pushObject.on('registration').subscribe((registration: any) =>
alert(JSON.stringify(registration)));
// pushObject.on('error').subscribe(error => console.error('Error with Push plugin', error));
}