cordova-plugin-local-notifications
cordova-plugin-local-notifications copied to clipboard
IOS: Actions button not working
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.3
- Platform: IOS
- OS version: 13.3.1
- Device manufacturer / model: Iphone 6s
- Cordova version (
cordova -v
): 9.0.0 - Cordova platform version (
cordova platform ls
): 5.1.1 - Plugin config
- Ionic Version (if using Ionic) : 5.4.15
Expected Behavior
Action button should visible
Actual Behavior
Action button not visible
Steps to Reproduce
I used the example code:
(<any>window).cordova.plugins.notification.local.schedule({ title: 'Local Notification Plugin', text: 'Made by appPlant from Leipzig/Germany', icon: 'file://img/icon.png?crop=cirlce', attachments: ['file://img/icon.png'], actionGroupId: 'like-dislike', trigger: { in: 10, unit: ELocalNotificationTriggerUnit.SECOND }, actions: [{ id: 'like', type: 'button', title: 'Like', launch: true },{ id: 'dislike', type: 'button', title: 'Dislike', ui: 'decline' },{ id: 'feedback', type: 'input', emptyText: 'Enter feedback', submitTitle: 'Send' }] });
Hi, I am facing the same issue on iOS.
Same problem here but little strange I have defined 3 action group :
window.cordova.plugins.notification.local.addActionGroup('action-treatment', [
{ id: Constants.Notification.Events.Treatments.Taken, title: 'MY_BUTTON_1' },
{ id: Constants.Notification.Events.Treatments.Reminder, title: 'MY_BUTTON_2' },
{ id: Constants.Notification.Events.Treatments.Cancel, title: 'MY_BUTTON_3' }
])
window.cordova.plugins.notification.local.addActionGroup('action-risk', [
{ id: Constants.Notification.Events.Treatments.NewRisk, title: 'MY_BUTTON_1' },
{ id: Constants.Notification.Events.Treatments.Cancel, title: 'MY_BUTTON_2' }
])
window.cordova.plugins.notification.local.addActionGroup('action-reminder', [
{ id: Constants.Notification.Events.Reminders.Ok, title: 'MY_BUTTON_1' }
])
On Android all work fine
On iOS the first and third (action-treatment
and action-reminder
) definition not show buttons but the second (action-risk
) show them
If I don't use global action group definition and specify actions in each notification schedule iOS work fine 🤯
If someone have solution, I'm in 😸
Same problem here. Action buttons don't show up on iOS but fine on Android.
Any solution to this?
Someone could resolve this issue? I've been trying to deal with it
Any update for this issue?
any resolution on this?