Blank notification message in Background mode that cannot be removed
See original GitHub issueHello! I have a problem. Despite the fact is running in silent mode i can see a notification when it goes on Background mode.
The notification has no text and i cannot swipe it. It always stay there. It doesn’t appear instantly, but some 10min later.
All the rest seems to be working fine. But i really need to resolve this or i cannot use the plugin. Below there is a screenshot of the notification:
I am testing it on Android right now.
This is my code:
cordova.plugins.backgroundMode.setDefaults({
silent: true
});
cordova.plugins.backgroundMode.configure({
silent: true
});
cordova.plugins.backgroundMode.enable();
cordova.plugins.backgroundMode.onactivate = function ()
{
// my code
}
cordova.plugins.backgroundMode.ondeactivate = function ()
{
// other code
}
Why is that? There is something wrong in my code? Thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Firebase onMessageReceived not called when app in ...
This is working as intended, notification messages are delivered to your onMessageReceived callback only when your app is in the foreground.
Read more >Android Notifications Not Showing Up? 10 Fixes You Can Try
Not seeing notifications show up on your Android phone? Try these fixes to get Android notifications working again.
Read more >Data & Background Notifications - OneSignal Documentation
Background /Data notifications are "silent" meaning they do not display any message or play a sound when received by your app. They are...
Read more >Receive messages in an Android app - Firebase - Google
A user tap on a notification opens the app launcher by default. Messages with both notification and data payload, when received in the...
Read more >Pushing Background Updates to Your App - Apple Developer
To receive background notifications, you must add the remote notifications background mode to your app. In the Signing & Capability tab, add the...
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 Free
Top 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
Anyone could fix this?
It still happens, why was the issue closed?