-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Onesignal received and opened events stops once application is minimized #597
Comments
Just added OneSignal.setLogLevel(0, 6) and there was error Both GCM & FCM Libraries detected! Please remove the deprecated GCL library. I am using detached expo application |
Tried in genymotion
App doesn't fires received and opened events any further now. |
Thanks for reporting this, I'll be closing this issue because it's a duplicate of #583. We have fixed this problem and we are planning to include the fix in a new release in the next few hours. |
Description:
Onesignal received and opened events are not consistent. I am getting trouble tracking received event in onesignal as it's not getting fired sometime. When I re-run app from android studio it will work again. Any suggestions ?
(your description here)
Environment
3.2.5
0.55.2
Steps to Reproduce Issue:
class MainRoot extends React.Component{
constructor(props){
super(props);
this.onIds = this.onIds.bind(this);
this.onReceived = this.onReceived.bind(this);
this.onOpened = this.onOpened.bind(this);
}
componentWillMount() {
OneSignal.init("XXXXXXXXX");
OneSignal.inFocusDisplaying(2);
OneSignal.addEventListener('ids', this.onIds);
OneSignal.configure();
OneSignal.addEventListener('received', this.onReceived);
OneSignal.addEventListener('opened', this.onOpened);
}
onIds(idData){
console.log(idData,"ids data");
}
onReceived(request) {
console.log("received",request)
}
onOpened(openResult) {
console.log('Data: Navigate to this', openResult);
}
componentWillUnmount() {
OneSignal.removeEventListener('opened', this.onOpened);
OneSignal.removeEventListener('received', this.onReceived);
}
render(){
return(
{Routes}
);
}
}
Anything else:
(crash stacktraces, as well as any other information here)
The text was updated successfully, but these errors were encountered: