Comments (10)
If you want, you can try my fork, which makes the plugin work for Android 14+
:
https://github.com/TheNotorius0/cordova-plugin-local-notification
Keep in mind that this is a fork of the moodlemobile fork (https://github.com/moodlemobile/cordova-plugin-local-notification), which already works great for Android 13 devices, but notifications don't work for Android 14 there (but at least they didn't crash).
I have tested it with both API 33 and API 34, and with Allow setting alarms and reminders
both enabled and disabled, and it works.
I haven't tested it in production yet though, since I literally created this new fork today.
from cordova-plugin-local-notifications.
I'm just starting a new app and this issue has already surfaced. Exact is a requirement for this app because it starts a countdown and no response can cause emergency services to be called. @katzer are you planning an upgrade?
from cordova-plugin-local-notifications.
Thanks! I'll give it a try. These notification plugins are a complete s* show! LOL
@bhandaribhumin did a fork and really did a nice job with documenting the properties but what's defined clashes with what's defined here (sound, led etc).
Mind you, I'm using Volt.build (a cloud build service that's a full install of cordova).
I'm gonna do an Android build in a few... test it there on 6 and 10 and then I'll try yours for 6, 10 and 13 plus.
from cordova-plugin-local-notifications.
@TheNotorius0 Your's is not yet on NPM so it's a no-go with volt.build.
from cordova-plugin-local-notifications.
@TheNotorius0 Your's is not yet on NPM so it's a no-go with volt.build.
It seems that moodlemobile
has released a new update: https://github.com/moodlemobile/cordova-plugin-local-notification.
I'm still using my fork so I haven't tested it yet, but notifications should now work for Android 14, and there is even a new method to make users open notification settings to schedule exact alarm, if the app requires precise timing.
from cordova-plugin-local-notifications.
moodlemobile doesn't have the createChannel function so it doesn't support custom sounds... neither does yours. That seems to be a common sticking point.
from cordova-plugin-local-notifications.
Well, luckily I'm also using the cordova-plugin-firebasex Plugin, which supports the creation of channels, so I have never encountered that limitation.
from cordova-plugin-local-notifications.
If you want, you can try my fork, which makes the plugin work for
Android 14+
:https://github.com/TheNotorius0/cordova-plugin-local-notification
Keep in mind that this is a fork of the moodlemobile fork (https://github.com/moodlemobile/cordova-plugin-local-notification), which already works great for Android 13 devices, but notifications don't work for Android 14 there (but at least they didn't crash).
I have tested it with both API 33 and API 34, and with
Allow setting alarms and reminders
both enabled and disabled, and it works.I haven't tested it in production yet though, since I literally created this new fork today.
I have used your fork within my app but after uploading the production version to Google Play Console, the Pre-launch report shows stability crash error
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
from cordova-plugin-local-notifications.
I have used your fork within my app but after uploading the production version to Google Play Console, the Pre-launch report shows stability crash error
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
That repository has been archived, you should use Moodle's one now: https://github.com/moodlemobile/cordova-plugin-local-notification
from cordova-plugin-local-notifications.
This is fixed with the latest master.
from cordova-plugin-local-notifications.
Related Issues (20)
- Apps Now Having Problems Adding Plugin HOT 2
- Plugin get installed, app get compiled and launched on android, but notification is just not working. HOT 1
- Notification group with actions at a particular time HOT 1
- When I click notification app crashes HOT 3
- request permission is never fired at all on android 13 HOT 5
- NullPointerException from isInForeground
- NPM is still at beta 2 and beta 3 has been out since 2018 HOT 7
- Cant get custom sound to work in both Android and ios HOT 8
- Google Play Console Pre-launch report | java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference HOT 3
- Gradle 9.0 Compatibility - Deprecated Gradle features were used in this build HOT 5
- progressBar is not working for ios platform? HOT 1
- notification actions are not working. HOT 5
- build success, run is not working HOT 5
- Is it possible to set color for the notification title and body texts? HOT 1
- Adding the Cordova plugin local notification plugin through Cordova resulted in the Ionic project reporting 'compile not found' when generated through build HOT 1
- how to handle notification action button with icon not text HOT 4
- Can I avoid restarting the app when click the notification action button? HOT 6
- clear() does not remove the notification on Android HOT 3
- Vibrate setting has no effect (Android) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-local-notifications.