My device get the notifications perfectly when the app is opened or in background. But if I close the app, It’ll get two notifications.
constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, private oneSignal: OneSignal) {
platform.ready().then(() => {
statusBar.styleDefault();
splashScreen.hide();
this.oneSignal.startInit("XXXXXXXXXXXXXXXXXXX", "XXXXXXXXXXXXXXXXXXXX")
.sendTag('email', 'XXXXXXXXXXXXXXXXXX')
.endInit();
});
};
I’ve injected a Onesignal dependency as public or private and the error continue. I thought that the error happen in backend and I made a test using the onesignal website, but not work again.
look the example: