question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Future schedules don't work in Android 9.0 and 8.1

See original GitHub issue

WARNING: IF YOU IGNORE THIS TEMPLATE, WE’LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

All schedules configured to not initiate immediately aren’t working.

Your Environment

  • Plugin version: tried from master to 0.9.0-beta.3
  • Platform: Android
  • OS version: 0.8.1, 9.0
  • Device manufacturer / model: Nexus 4 (0.8.1) - Samsung S9 (0.9)
  • Cordova version (cordova -v): 8.1.2 (cordova-lib@8.1.1)
  • Cordova platform version (cordova platform ls): android 7.1.4
  • Plugin config

Expected Behavior

Working:

cordova.plugins.notification.local.schedule({
    title: 'My first notification',
    text: 'Thats pretty easy...',
    foreground: true
});

cordova.plugins.notification.local.schedule([
    { id: 1, title: 'My first notification' },
    { id: 2, title: 'My first notification' }
]);

cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    text: '3:00 - 4:00 PM',
    trigger: { at: new Date() }
});

NOT WORKING:


cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    text: '3:00 - 4:00 PM',
    trigger: { at: new Date(new Date().getTime() + 3600) }
});

cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    text: '3:00 - 4:00 PM',
    trigger: { at: new Date(new Date().getTime() + 60) }
});

cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    trigger: { in: 1, unit: 'hour' }
});

cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    trigger: { every: 'day', count: 5 }
});

cordova.plugins.notification.local.schedule({
    title: 'Design team meeting',
    trigger: { every: 'minute', count: 5 }
});

cordova.plugins.notification.local.schedule({
    title: 'Happy Birthday!!!',
    trigger: { every: { month: 10, day: 27, hour: 9, minute: 0 } }
});

Actual Behavior

Nothing

Steps to Reproduce

Just reproduce above code.

Context

What were you trying to do?

Debug logs

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

4reactions
katiebencommented, Jun 29, 2019

Scheduling notifications is also not working for me in Android 9.0.

Here’s are the cordova plugins I’m using:

"cordova": "^9.0.0",
"cordova-android": "^7.1.4",
"cordova-browser": "^5.0.4",
"cordova-ios": "^4.5.5",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-browsersync": "^1.1.0",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-whitelist": "^1.3.3",

Here’s my code:

window.cordova.plugins.notification.local.schedule({
  title: 'How are you?',
  trigger: { every: { minute: 42 } }
})

Any ideas? @samuelfaj, how did you isolate the problem to cordova-insomnia?

2reactions
samuelfajcommented, May 19, 2019

Awkward… The demo app works, one plugin may be conflicting.

EDIT: ### Plugin was conflicting with cordova-plugin-insomnia

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android 9 Pie
Set a daily schedule to get your phone ready for bed. Your screen fades to Grayscale, while Do Not Disturb silences notifications for...
Read more >
Android 9.0 Pie Problems: 5 Things You Need to Know
Various connectivity (Bluetooth, Wi-Fi, GPS) problems; Bad battery life. Be on the lookout for fixes for these issues inside of an upcoming ...
Read more >
8.1 and 9.0 vendor - XDA Forums
I have a ques. How are 8.1 vendor files different from 9.0 vendor files? I mean vendor partition should suppose to have hardware...
Read more >
When does an old smartphone become unsafe to use?
Android and iOS devices have safe working lifespans of different lengths – here's ... as Android phones are not as standardized as iPhones....
Read more >
Android 10 Is Here, but How Many Devices Did Android 9.0 ...
In fact, if placed into a hierarchical list, Android 9.0 Pie comes in at an ... As such, Google itself does not control...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found