katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.76k forks source link

What are these errors? #1974

Closed ethereal94 closed 1 month ago

ethereal94 commented 2 years ago

After installing the plugin everything stops working and waterfall errors!

Who knows what the problem is and how to solve it? Thank you!

Image: https://postimg.cc/f36DwfGG https://postimg.cc/8FFTQ00d https://postimg.cc/gxtG7WNk https://postimg.cc/Hrkp3x0h

salteggs commented 2 years ago

Hey, we ran into the same problem and ended up installing AndroidX and modifying the code.

You will want to change from android.support.v4.app.NotificationCompat to androidx.core.app.NotificationCompat, from android.support.v4.util.ArraySet to androidx.collection.ArraySet and so on.

We have a small install base, and since release, this plugin is now causing 0,5% crashes. We will see if we can identify the problem, maybe we did not modify the java code correctly in a specific file.

salteggs commented 2 years ago

You can also check https://www.npmjs.com/package/cordova-plugin-androidx for backwards compatibility