Skip to content
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

[Bug]: getNotification and getActionButtons not found on INotificationReceivedEvent #2178

Open
1 task done
TheMeanCanEHdian opened this issue Aug 18, 2024 · 2 comments
Open
1 task done

Comments

@TheMeanCanEHdian
Copy link

TheMeanCanEHdian commented Aug 18, 2024

What happened?

While migrating to v5 I have run into an issue with the notification service extension as seen below. I am using the provide java code from here converted to kotlin.

I am using the Flutter SDK 5.2.3 with Android SDK 5.1.20

CleanShot 2024-08-18 at 13 50 06@2x

Steps to reproduce?

1. Migrate to v5
2. Attempt to implement suggested code for Noticication Service Extension

What did you expect to happen?

I expected these get calls to function similar to v3 with OSNotificationReceivedEvent

OneSignal Android SDK version

5.1.20

Android version

12

Specific Android models

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jinliu9508
Copy link
Contributor

Hello @TheMeanCanEHdian, this is a known issue in version 5.1.19, but I haven't seen any reports for 5.1.20. Could you try upgrading the SDK and let us know if the error occurs again?

@TheMeanCanEHdian
Copy link
Author

TheMeanCanEHdian commented Nov 6, 2024

Hello @jinliu9508,

I was testing this on SDK 5.1.20, I just tested again with 5.1.24 and same issue. I am getting the SDK through the OneSignal Flutter SDK (Flutter SDK 5.2.7 for the Android SDK 5.1.24).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants