notification is not showing in status bar when app in background/foreground
padma1985 opened this issue · comments
WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!
Provide a general summary of the issue.
Your Environment
- Plugin version:0.9.0-beta.2
- Platform: android
- OS version: android 9+
- Device manufacturer / model:all android
- Cordova version (
cordova -v
): 9.0.0 - Cordova platform version (
cordova platform ls
):android 8.1.0 - Plugin config default
- Ionic Version (if using Ionic)5.4.13
Expected Behavior
Notifications should show in system tray, status bar, badge
Actual Behavior
Notifications should show in system tray, badge but not shown in status bar. When checked in "Device setting" by default option to "show notification as banner" is disabled in "Default channel". Under "Default" setting" it is enabled.
Steps to Reproduce
The following is the code to generate local notification
- Install both plugins
- Code to trigger local notification
this.localNotifications.schedule({
foreground: true,
title: 123,
text: 'Sample test' ,
data: {secret: data},
trigger: {count: 1},
id: this.id,
priority: 1
});
Context
We use firebasex plugin 11.0.3 to receive notification via data message. once data message comes in , we use local notification to trigger the notification. It works fine in IOS. In android everything works except the status bar. Can you please guide how to show the "status bar notification" by default?