Future schedules don't work in Android 9.0 and 8.1
See original GitHub issueWARNING: 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:
- Created 4 years ago
- Reactions:4
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Scheduling notifications is also not working for me in Android 9.0.
Here’s are the cordova plugins I’m using:
Here’s my code:
Any ideas? @samuelfaj, how did you isolate the problem to cordova-insomnia?
Awkward… The demo app works, one plugin may be conflicting.
EDIT: ### Plugin was conflicting with cordova-plugin-insomnia