I am working on an Ionic apps and I use @capacitor/push-notifications to receive notification.
On Android my notifications are not displayed on the lock screen. I have the sound, the notification is displayed in the list of notifications but not on the lock screen.
I create my channel with this code :
PushNotifications.createChannel({
id: "fcm_default_channel",
name: "fcm_default_channel",
importance: 5,
visibility: 1,
lights: true,
vibration: true,
})
.then(() => {
})
.catch((error) => {
});
I have uninstalled and re-install the application from Android Studio in debug mode.
When I check the notification configuration of the apps, the channel "fcm_default_channel" has "do not display on lock screen".
How can I set this option ? I have made a lot of tests without success …