Giter Club home page Giter Club logo

Comments (10)

TheNotorius0 avatar TheNotorius0 commented on September 27, 2024 4

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.

ppetree avatar ppetree commented on September 27, 2024

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.

ppetree avatar ppetree commented on September 27, 2024

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.

ppetree avatar ppetree commented on September 27, 2024

@TheNotorius0 Your's is not yet on NPM so it's a no-go with volt.build.

from cordova-plugin-local-notifications.

TheNotorius0 avatar TheNotorius0 commented on September 27, 2024

@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.

ppetree avatar ppetree commented on September 27, 2024

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.

TheNotorius0 avatar TheNotorius0 commented on September 27, 2024

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.

bashartak avatar bashartak commented on September 27, 2024

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.

TheNotorius0 avatar TheNotorius0 commented on September 27, 2024

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.

GitToTheHub avatar GitToTheHub commented on September 27, 2024

This is fixed with the latest master.

from cordova-plugin-local-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.