-
Notifications
You must be signed in to change notification settings - Fork 375
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
Notification.clicklistener on cold start #2268
Comments
I think it would be better for the developers to see a code snippet from your implementation. It's hard to find a issue without implementation details. |
This code is inside the onCreate method of the application class. |
Hello @mtaran89, your code looks correct. Typically, the callback will fire and run your code whether the app is running or not. Were you using the debugger while testing your app? It’s possible that the debugger was disconnected and couldn't break at the right point. I’d recommend printing a message in the click event to see if it’s being triggered. Let us know if the message is never printed upon click. |
Hi,
I have implemented the OneSignal Android SDK 5.1.29 and initialized it in the Application class. I want to handle the additional data in push notifications. When the app is in the foreground or background (running), the notification.clickListener is triggered. However, when the app is not running (cold start), clicking on a received notification does not trigger the notification.clickListener.
How can I resolve this issue?
The text was updated successfully, but these errors were encountered: