-
Notifications
You must be signed in to change notification settings - Fork 368
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
[question]: cannot resolve method 'setNotificationOpenedHandler' #1816
Comments
@irinapopova124 thanks for reaching out! It looks like you might be using version 5.0.0 of our SDK--can you confirm? If that's the case then we have updated this method. You will want to use Let us know if that helps! |
But still, the problem is that I need the setNotificationOpenedHandler so that when the user clicked on the notification, I can extract the additional data. The docs on addClickListener is not elaborate enough on how to do this. Could you let us know, thanks a lot @jennantilla |
You can still fetch the data @irinapopova124 with the clickListener, checking it I can see you can get it through its override method onClick. In kotlin:
Here the doc: https://documentation.onesignal.com/docs/sdk-notification-event-handlers |
What about the the Foreground Listener found here? Is there sample code or references in Kotlin for handling that case? |
Please help. OneSignal implemented on Gradle, Import Added. But still not recognizing the method..
in MainActivity
cannot resolve method 'setNotificationOpenedHandler'
import com.onesignal.OneSignal;
I only have 3 method to use in OneSignal. Any idea why? Thanks
Code of Conduct
The text was updated successfully, but these errors were encountered: