-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to remove notification #179
Comments
@winos Use the silent mode See the sample app and the readme |
cordova.plugins.backgroundMode.setDefaults({ silent: true }); i already used silent true . however after updated. |
I had the same issue too。My version is: 0.6.5 and android version: 6.0 |
Same issue here. Android 5.0.1 and 6.0 |
Hi, Notification note = new Notification( 0, null, System.currentTimeMillis() ); I use Ionic Framework its work for me |
Solution from @ouarrar works great.
which is caused by startForeground(). Update: |
Hi, i have the same problem with silent: true. Notification shows logo without any text and it i can't close or open app clicking on this notification. ForegroundService.java file has "startForeground(NOTIFICATION_ID, makeNotification());" but it not on 105 line. So i removed it and added another code from @hoongoon86 post but it doesnt help. Thanks! |
Hi everyone,after I set |
@fenglu09 Thank you for your response. Your solution it is not quite right for me. I want app to work without notification(silent true), but after some users actions i want app to show some notification. And it works but sometime app shows empty notification - only logo without any text. It is my code: |
Have you set the |
Yes, I set the default settings: Screen what i see http://coment.me/RvusJZe |
Well, I don't know how to solve it too. |
@fenglu09 Thank you, anyway! I will try to write more details about my problem
Android version 5.1 By the way i set "silent: true" in default settings, but this bug in any case is there Thanks! |
@igor90, did you had the chance to test with v.0.6.6-dev (master)? I've fixed the silent mode in the meantime. |
Please re-open if still present with latest master branch (0.6.6) |
I'm using |
Now it should work! |
Please, reopen the issue. Here is my code: //in my controller document.addEventListener('deviceready', function () { document.addEventListener("pause",onPause,false); function onPause() { }; function onResume() { cordova.plugins.backgroundMode.on('activate', function () {
}); }); Thanks in advance. |
Please, reopen the issue. |
@N7snake If you want to hide the notification you can do like this :
|
@noluckskills it minimize but didn't solve to me. At certain point the notification suddenly appears. I don't know exactly the scenario but shows up. Got many user's complain specially by the message not to be friendly. @katzer Is there a straight way to fix/silent it ? my code very simple:
|
Setting defaults as shown: backgroundMode.setDefaults({
title: 'My App Name',
text: 'Checking for new info',
silent: true,
}) works fine for me on Android 6.0 (this is ionic3/angular5). @faustoct: not sure what your issue may be, but it seems there's no |
for modify notification ====== Ionic3 (write code in app.component.ts)==== cordova.plugins.backgroundMode.setDefaults({ for hide notification cordova.plugins.backgroundMode.setDefaults({ silent: true }); [(https://github.com/katzer/cordova-plugin-background-mode)] |
Thanks |
when the app is running in background, show a notification always with this message:
How can i do remove it? It is never removed
The text was updated successfully, but these errors were encountered: