keep notification shade open upon clicking action button?
See original GitHub issuenotification clicked --> notification shade closes and app opens --> good. action button clicked --> notification shade closes --> not always good?
especially if the action results in the related notification still showing.
Your Environment
- Plugin version: 0.9.0-beta.2
- Platform: android
- OS version: 7.1.1
- Device manufacturer / model: nexus 6
- Cordova version (
cordova -v
): 7.1.0 - Cordova platform version (
cordova platform ls
): android 6.3.0 - Ionic Version (if using Ionic): 3.19.1
- Plugin config
this.localNotifications.on( 'switch-book', function( note, event ) {
that.localNotifications.update({
id: note.id,
title: "Loading next book.",
text: "Just a second...",
ongoing: true,
priority: -2,
sound: null,
color: null,
led: null,
smallIcon: 'res://ic_stat_notify.png',
icon: null
});
});
Expected Behavior
notification drawer should stay open if action does not result in clearing its notification.
Actual Behavior
notification drawer is closed no matter what: on notification click, action click, etc.
Steps to Reproduce
create new notification with action button. have action button do anything (or nothing), and notification shade will close every time whenever an action button is clicked.
Context
one of my action buttons updates the notification it’s attached to. it’s confusing for the user if the ‘update’ action button results in the whole notification shade closing, when they were just looking for the notification to update.
example: android’s default sms app (‘messages’) provides a ‘mark as read’ action for new text messages. upon clicking that action, the message is marked as read, and the notification shade remains open.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@m52go See c008cc6
@katzer omg it’s perfect! you made my WEEK sir!! sending you an email at contact at appplant.