LocalNotification not coming after device reboot
See original GitHub issueNotifiocation not triggered after device reboot.
Your Environment
- Plugin version: cordova.plugin.local-notification 0.9.0-beta.3
- Platform: Android
- OS version: Android 7.1.2
- Device manufacturer / model: Redmi 5A
- Cordova version (
cordova -v
): 8.1.2 - Cordova platform version (
cordova platform ls
): Android 7.1.4 - Plugin config
- Ionic Version (if using Ionic): 4.9.0
Expected Behavior
Notification should trigger on time
Actual Behavior
not trigger at time after device reboot
Code
SaveNotification(){ console.log(“— Schedule at -----”,this.date+“-----”+this.id);
cordova.plugins.notification.local.schedule({
id: this.id,
title: 'Attention',
text: 'Local Notification',
data: { mydata: 'My hidden message this is' },
trigger: {at: new Date(this.date)},
});
this.id++
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:19 (3 by maintainers)
Top Results From Across the Web
xamarin - Local Notification Does not Show After Device Reboot
I hate to delete a question from the internet. The issue on boot received was using dependency injection in the boot receiver.
Read more >Local notifications get lost after android reboot - Ionic Forum
The local notifications in my App get lost after I'm restarting my android phone. Before the restart the local notifications work fine.
Read more >[Solved]-Local Notification rescheduling after reboot iOS
And when device reboots it just invokes all active notifications as if there was no reboot at all. So for sure there is...
Read more >local notification plays only default sound after app update
The issue does not come back, unless the user redownloads the app. You can check if you are an update running 10.0.x and...
Read more >Creating Local Notifications in Flutter - Kodeco
So, build and run the app to ensure it works for Android and iOS before going forward. Building the Local Notification Helper Library....
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
Great you found a solution 😃
If i install using reading Ionic Documentation it is not working. But installing manually using “Katzer Plugin” it is working My workaround is :
1.)
cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications
2.)npm uninstall --save @ionic-native/local-notifications
3.) Remove LocalNotification from app.module.ts.Then install using
cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications
Now use this