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.

Blank notification message in Background mode that cannot be removed

See original GitHub issue

Hello! 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:

screenshot_20160523-133427

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:closed
  • Created 7 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
romanglomcommented, Jul 28, 2016

Anyone could fix this?

1reaction
JoaoPauloCMarracommented, Nov 11, 2016

It still happens, why was the issue closed?

Read more comments on GitHub >

github_iconTop 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 >

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