-
Notifications
You must be signed in to change notification settings - Fork 198
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]: Android: Displaying push messages fails with "InvocationTargetException" #1010
Comments
@timmkuehle thanks for reporting, this looks similar to issue OneSignal/react-native-onesignal#1677 but is different than OneSignal/OneSignal-Android-SDK#1998. Questions
InvestigationThe crash is coming from within Google's |
I am able to reproduce the issue if implementation('androidx.work:work-runtime-ktx:2.8.1')
api('androidx.work:work-runtime') {
version {
strictly '2.7.0'
}
} However it isn't clear what's downgrading the version in your scenario, but finding that is the key to solving this. Can you run Another way to find the breaking library is if you remove libraries from your project, or make a new project and build them up and share the project reproducing the issue. |
@jkasten2 Thanks for your reply and a big sorry for my very late answer. Due to a few other issues in our project, I lost track on this issue. I think in our case, we had to force As far as we are concerned, this issue could be closed, if it's not relevant for any of your other users. Thanks again for your effort and sorry, I couldn't shed more light on the problem. |
What happened?
Since updating from an older onesignal-cordova-plugin version to the current 5.2.3, push notifications are no longer displayed on android devices. Instead Logcat shows the following error:
Sadly, I'm barely deep enough into native Android coding in Java, to tell that there seems to be an issue with a missing method.
Similar issues were reported in #1677 and #1998 in the OneSignal React Native repo, but I couldn't find any resolution.
The release notes of Release 5.2.3 even mention a fix for a "could not be instantiated" exception, but I couldn't figure out if this was related to the error I'm seeing. However Release 5.2.3 doesn't fix the exception that I ran into.
Steps to reproduce?
What did you expect to happen?
A push notification should have been displayed.
OneSignal Cordova SDK version
Release 5.2.3
Which platform(s) are affected?
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: