Reputation: 4724
I am setting an alert in my app which results in a local notification which is displayed as a banner. How can I make it display as an alert that has to be clicked to dismiss it or ideally open the app directly?
This is how i am currently setting the notification
window.plugin.notification.local.add({
id: 'happicards' + id,
title: "Your Happi Card Awaits",
message: "Click to view",
repeat: repeat,
date: alarm_date
});
Upvotes: 0
Views: 28
Reputation: 6387
This is a user setting.
Open device
Settings > Notifications > Your App
and adjust to your personal preference. In other words: can not be done.
But you can send silent Notifications to your app and execute code when they get in. This will allow at least parts of what you want to achieve.
Upvotes: 1